Generating your theme
Thinking…
Playground
Change the props and copy the code. The controls come from the component's TypeScript types.
Generating a summary…
Props
duration2.4
import { ShimmerText } from "@/components/ui/shimmer-text";<ShimmerText>Generating a summary…</ShimmerText>Installation
$ pnpm dlx shadcn@latest add @synccn/shimmer-textFirst time in this project? Connect synccn with one command.
Usage
import { ShimmerText } from "@/components/ui/shimmer-text";<ShimmerText>Thinking…</ShimmerText>API reference
Generated from the component's TypeScript types, so it always matches the code.
ShimmerText
Text with a light sweep passing across it — good for "thinking…" states.
PropTypeDescription
- duration
numberDefault
2.4Seconds per sweep.
- children
React.ReactNodeContent to render.
- className
stringExtra classes for the root element.
Dependencies
Read from the component's imports when the site builds. The CLI installs all of these for you.
Helpers
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
Accessibility
From the source
Read from this component's code when the site builds, so it can't drift.
- ARIA attributes: aria-hidden, aria-label
More motion
MarqueeEndless scrolling row or column that pauses on hover.Number TickerCounts up to a number when it scrolls into view.TypewriterTypes and deletes a list of phrases.Word RotateCycles words with a vertical slide.Text ScrambleCharacters scramble and resolve left to right.Border BeamA light that travels around a card's border.