Loading preview
Animated Card
CardsA card that tilts in 3D toward the pointer with spring physics.
A matchbox with a sliding tray and matches you can strike one at a time.
npx shadcn@latest add @venusui/matchboxRun 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/matchbox.tsxThe code behind the preview above.
matchbox-demo.tsx
import { Matchbox } from "@/components/ui/matchbox"
export default function MatchboxDemo() {
return <Matchbox />
}
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | "Good Light" | Big line on the label. |
| subtitle | string | "Safety matches" | Small line on the label. |
| count | number | 12 | Matches in the box. |
| burnTime | number | 6000 | Burn time in milliseconds. |
| onStrike | (remaining: number) => void | — | Called when a match is lit. |
All <div> props.
lucide-react for icons. React 19 and Tailwind CSS v4. The CLI adds the keyframes.onStrike for a small reward, such as revealing a hint.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 card that tilts in 3D toward the pointer with spring physics.
A lens with a working iris: blades close to the chosen aperture and snap shut when you release the shutter.
Stacked cards with the next ones peeking out; Next sends the top card to the back.