Shimmer Text
ProA highlight that sweeps across muted text. Ideal for loading and AI status lines.
Installation
pnpm dlx shadcn@latest add @viewport/shimmer-text
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| duration | numberSeconds for one sweep. | 2.4 |
Accessibility
- Pure CSS, no JavaScript.
- Falls back to static muted text under reduced motion.
- Text stays selectable and readable by screen readers.