Split Flap
Split-flap display that flips each character through the alphabet like a departure board, with a column ripple, tones, sizes and reduced motion support.
src/registry/ui/split-flap.tsx/r/split-flap.json
Installation#
bash
npx shadcn@latest add https://ui.minidev.pro/r/split-flap.json
Usage#
tsx
import { SplitFlap } from "@/components/ui/split-flap"
export function Example() {
return <SplitFlap />
}
API reference#
| Prop | Type | Default |
|---|---|---|
value | string | "NOW BOARDING" |
length | number | - |
speed | number | 70 |
stagger | number | 28 |
size | "sm" | "default" | "lg" | "default" |
tone | "default" | "accent" | "success" | "warning" | "danger" | "default" |
className | string | - |
Dependencies#
npm
motion
Built from
No other MiniDev files
Related motion components#
Light ProviderA page wide light source that follows the pointer and drifts when idle, driving shadows via CSS variables, plus a hairline, glass, metal and paper switcher.MarqueeAn infinitely scrolling Tailwind strip that loops its children horizontally, duplicated for a gapless cycle, and stops when users prefer reduced motion.Morph PanelA React button that morphs into the panel it opens on a spring, blurring the label out and the form in. Ships with a feedback form and closes on Escape.Number RollAn odometer style animated number where each digit rolls on a spring and only changed digits move. Supports Intl formatting, trend tint and reduced motion.Animated Feature RowA row of feature cards that slide up with a staggered delay when scrolled into view. Pass title and description pairs; reduced motion keeps them still.Card TiltA card that tilts in 3D toward the pointer on springs, with an accent glare that follows the cursor. It stays flat when reduced motion is preferred.
All Animated React components