npx shadcn@latest add https://components.bksh.site/r/text-shimmer.json

Typography

Text Shimmer

An animated gradient sweep across text.

Better Components
Example.tsx
import { TextShimmer } from "@/components/better/text-shimmer"
export function Example() {
return (
<TextShimmer className="text-3xl font-medium" duration={1.5} spread={2}>
Better Components
</TextShimmer>
)
}

Dependencies

Props

PropTypeDefaultDescription
children*string
asElementType
classNamestring
durationnumber2Animation duration in seconds.
spreadnumber2Width of the moving highlight, in `ch` units.