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#

SplitFlap props
PropTypeDefault
valuestring"NOW BOARDING"
lengthnumber-
speednumber70
staggernumber28
size"sm" | "default" | "lg""default"
tone"default" | "accent" | "success" | "warning" | "danger""default"
classNamestring-

Dependencies#

npm

motion

Built from

No other MiniDev files
All Animated React components