Loading preview
Gradient Text
Text animationsText filled with a slowly moving gradient: a subtle sheen by default, or your own colors.
Text whose words rise out of a blur one after another.
npx shadcn@latest add @venusui/blur-textRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/blur-text.tsxThe code behind the preview above.
blur-text-demo.tsx
import { BlurText } from "@/components/ui/blur-text"
export default function BlurTextDemo() {
return (
<BlurText
as="h2"
text="Every word arrives in its own moment"
className="max-w-lg text-center text-3xl font-semibold tracking-tight text-balance sm:text-4xl"
/>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | — | The text to reveal. Required. |
| as | "h1" | "h2" | "h3" | "p" | "span" | "p" | Element to render. |
| delay | number | 0 | Milliseconds before the first word. |
| stagger | number | 90 | Milliseconds between words. |
Only the props above, plus className.
blur-in keyframes. Works in Server Components and without JavaScript.delay so a paragraph starts after the heading.key to replay it.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.Text filled with a slowly moving gradient: a subtle sheen by default, or your own colors.
Counts up to a number when it scrolls into view, with locale-aware formatting.
Cycles through words with a vertical slide, pausing on hover.