uibrik

Slot-machine Letters

Preview

Customize

Duration0.50s
Stagger0.05s
Text size48px

Usage

import { SlotLetters } from "@/components/uibrik/slot-letters/slot-letters";

<SlotLetters play={play} />

Installation

npx shadcn@latest add https://uibrik.com/r/slot-letters.json
Adds the files to components/uibrik/slot-letters and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/slot-letters.

Props

SlotLetters
words
Type string[]
["ROUND","ABOUT","TURNS","AGAIN"]
Uppercase A–Z words, cycled one per play.
duration
Type number
0.5
Time for a reel to stop.
stagger
Type number
0.05
Delay between reels.
playrequired
Type number
–
Each change plays the effect again; 0 shows its resting state.