Loading preview
Blur Text
Text animationsText whose words rise out of a blur one after another.
Text filled with a slowly moving gradient: a subtle sheen by default, or your own colors.
npx shadcn@latest add @venusui/gradient-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/gradient-text.tsxThe code behind the preview above.
gradient-text-demo.tsx
import { GradientText } from "@/components/ui/gradient-text"
export default function GradientTextDemo() {
return (
<div className="space-y-4 text-center">
<h2 className="text-4xl font-semibold tracking-tight">
<GradientText>Quietly animated headline</GradientText>
</h2>
<p className="text-2xl font-semibold">
<GradientText colors={["#6366f1", "#06b6d4", "#10b981"]}>With your own colors</GradientText>
</p>
</div>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| colors | string[] | — | Gradient colors, left to right. Defaults to a sheen of the text color. |
| animate | boolean | true | Slowly move the gradient. |
All <span> props, including className and style.
gradient-text keyframes and --animate-gradient-text to your CSS.animate={false} for a static gradient.bg-clip-text with transparent text. Another class that sets a background color on the same element will hide 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 whose words rise out of a blur one after another.
Counts up to a number when it scrolls into view, with locale-aware formatting.
Cycles through words with a vertical slide, pausing on hover.