Compositions
Core Primitives
Transitions
Typography
Customize
120
700
1
Installation
$ pnpm dlx shadcn@latest add @framecn/slot-machine-roll
Usage
import { SlotMachineRoll } from "@/components/framecn/slot-machine-roll";<SlotMachineRoll />API Reference
SlotMachineRoll
| Prop | Type | Default |
|---|---|---|
from | string | "$99" |
to | string | "$199" |
fontSize | number | 120 |
color | string | "#171717" |
fontWeight | number | 700 |
speed | number | 1 |
fps | number | 30 |
durationInFrames | number | 45 |
className | string | - |
Notes
Each character rolls independently
Characters roll in sequence with slight delays between each roll. The duration controls how long each character takes to settle.