# Slot Machine Roll

Numbers and characters roll into place like a casino reel.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).

## Installation

<TabsTrigger value="cli">Command</TabsTrigger>
<TabsTrigger value="manual">Manual</TabsTrigger>

```bash
npx shadcn@latest add @framecn/slot-machine-roll
```

<Step>Copy and paste the following code into your project.</Step>

<Step>Update the import paths to match your project setup.</Step>

## Usage

```tsx
import { SlotMachineRoll } from "@/components/framecn/slot-machine-roll";
```

```tsx
<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

  Characters roll in sequence with slight delays between each roll. The duration
  controls how long each character takes to settle.