Shimmer Text
kokonut-ui/shimmer-textFreeComponent
Quite fancy.
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/shimmer-text.jsonSource
1"use client";23/**4 * @author: @dorianbaffier5 * @description: Shimmer 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 Text_01Props {17 text: string;18 className?: string;19}2021export default function ShimmerText({22 text = "Text Shimmer",23 className,24}: Text_01Props) {25 return (26 <div className="flex items-center justify-center p-8">27 <motion.div28 animate={{ opacity: 1, y: 0 }}29 className="relative overflow-hidden px-4 py-2"30 initial={{ opacity: 0, y: 20 }}31 transition={{ duration: 0.5 }}32 >33 <motion.h134 animate={{35 backgroundPosition: ["200% center", "-200% center"],36 }}37 className={cn(38 "bg-[length:200%_100%] bg-gradient-to-r from-neutral-950 via-neutral-400 to-neutral-950 bg-clip-text font-bold text-3xl text-transparent dark:from-white dark:via-neutral-600 dark:to-white",39 className40 )}41 transition={{42 duration: 2.5,43 ease: "linear",44 repeat: Number.POSITIVE_INFINITY,45 }}46 >47 {text}48 </motion.h1>49 </motion.div>50 </div>51 );52}
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 |
