Loading preview
A tilted wall of vertically scrolling columns, for screenshots and showcases.
Small stars that twinkle around a word, badge or button.
npx shadcn@latest add @venusui/sparklesRun 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/sparkles.tsxThe code behind the preview above.
sparkles-demo.tsx
import { Sparkles } from "@/components/ui/sparkles"
export default function SparklesDemo() {
return (
<h2 className="text-4xl font-semibold tracking-tight">
Make it <Sparkles className="text-amber-400">sparkle</Sparkles>
</h2>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| count | number | 10 | Number of sparkles. |
| color | string | text color | Sparkle color. |
All <span> props, including className and children.
sparkle keyframes. Works in Server Components.aria-hidden; the wrapped text is read normally.overflow-hidden on the direct parent.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.A tilted wall of vertically scrolling columns, for screenshots and showcases.
Curved lines across a section with light traveling along them.
Beams of light fall to the floor and burst into sparks when they land.