Loading preview
Background Beams
BackgroundsCurved lines across a section with light traveling along them.
Streaks of light falling diagonally across a card or section.
npx shadcn@latest add @venusui/meteorsRun 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/meteors.tsxThe code behind the preview above.
meteors-demo.tsx
import { Meteors } from "@/components/ui/meteors"
export default function MeteorsDemo() {
return (
<div className="relative flex h-64 w-full max-w-md items-center justify-center overflow-hidden rounded-xl border bg-card">
<Meteors count={20} />
<div className="relative text-center">
<p className="text-2xl font-semibold tracking-tight">Launch week</p>
<p className="text-sm text-muted-foreground">Something new every day.</p>
</div>
</div>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| count | number | 16 | Number of meteors. |
All <div> props, including className.
meteor keyframes and --animate-meteor to your CSS. Works in Server Components.from-foreground/70 class in the file, e.g. a brand color.aria-hidden.relative overflow-hidden.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.Curved lines across a section with light traveling along them.
Beams of light fall to the floor and burst into sparks when they land.
A glowing bar casting a cone of light that opens over the content below.