Swoosh Text
kokonut-ui/swoosh-textFreeComponent
Nike inspired Text
Live preview
live · rendered by the registry
Rendered by kokonut-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://kokonutui.com/r/swoosh-text.jsonSource
1"use client";23/**4 * @author: @dorianbaffier5 * @description: Swoosh Text6 * @version: 1.0.07 * @date: 2025-06-268 * @license: MIT9 * @website: https://kokonutui.com10 * @github: https://github.com/kokonut-labs/kokonutui11 */1213import { motion } from "motion/react";14import { cn } from "@/lib/utils";1516interface SwooshTextProps {17 text?: string;18 className?: string;19 shadowColors?: {20 first?: string;21 second?: string;22 third?: string;23 fourth?: string;24 glow?: string;25 };26}2728export default function SwooshText({29 text = "Hover Me",30 className = "",31 shadowColors = {32 first: "#07bccc",33 second: "#e601c0",34 third: "#e9019a",35 fourth: "#f40468",36 glow: "#f40468",37 },38}: SwooshTextProps) {39 const textShadowStyle = {40 textShadow: `10px 10px 0px ${shadowColors.first},41 15px 15px 0px ${shadowColors.second},42 20px 20px 0px ${shadowColors.third},43 25px 25px 0px ${shadowColors.fourth},44 45px 45px 10px ${shadowColors.glow}`,45 };4647 const noShadowStyle = {48 textShadow: "none",49 };5051 return (52 <div className="w-full text-center">53 <motion.div54 className={cn(55 "w-full cursor-pointer text-center font-bold text-3xl",56 "tracking-widest transition-all duration-200 ease-in-out",57 "text-black italic dark:text-white",58 "stroke-[#d6f4f4]",59 className60 )}61 style={textShadowStyle}62 whileHover={noShadowStyle}63 >64 {text}65 </motion.div>66 </div>67 );68}
What it pulls in
npm packages
Files it writes
More from kokonut-ui
All 40 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Action Search Baraction-search-bar | kokonut-ui | Components | Free | 2 deps · 2 files | |
| AI Input Searchai-input-search | kokonut-ui | Components | Free | 1 dep · 2 files | |
| AI State Loadingai-loading | kokonut-ui | Components | Free | 1 dep | |
| AI Input Selectorai-prompt | kokonut-ui | Components | Free | 2 deps · 4 files | |
| AI Text Loadingai-text-loading | kokonut-ui | Components | Free | 1 dep | |
| AI Voiceai-voice | kokonut-ui | Components | Free | 2 deps | |
| Apple Activity Cardapple-activity-card | kokonut-ui | Components | Free | 1 dep | |
| Magnet Buttonattract-button | kokonut-ui | Components | Free | 2 deps |
