NK

Search

Search pages, posts, and components

All components

Shimmer Text

Typography

Text with a highlight band travelling across it.

Loading your workspace…

Installation

Add it with the shadcn CLI:

$pnpm dlx shadcn@latest add https://nawalkattel.com.np/r/shimmer-text.json
Or install manually
  1. 1. Install dependencies

    pnpm add motion clsx tailwind-merge
  2. 2. Copy the component source into components/library/shimmer-text.tsx

Props

PropTypeDefaultDescription
durationnumber3Seconds per pass.
classNamestring - Classes applied to the text.

Accessibility

  • Text stays selectable and readable by assistive tech.
  • Falls back to a static gradient under prefers-reduced-motion.

Dependencies

motionclsxtailwind-merge