Meteors
ProStreaks of light falling across a container at random intervals.
Installation
pnpm dlx shadcn@latest add @viewport/meteors
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| count | numberHow many meteors to render. | 14 |
| angle | numberTravel angle in degrees. | 215 |
| className | string | — |
Accessibility
- Decorative and aria-hidden.
- Positions are seeded, so server and client markup always match.
- Hidden entirely under reduced motion.