Split Flap Text(026)

Tactile mechanical departure board text animation simulating retro split-flap displays.

ClickHover
Loading…

Installation

$npx kibo add split-flap-text

Usage

1import { SplitFlapText } from "@/components/kibo/split-flap-text/component";
2
3export default function Example() {
4 return (
5 <SplitFlapText />
6 );
7}

Props Reference

PropTypeDefaultDescription
wordsstring[]['LAUNCH READY', 'SYNC ONLINE', 'SIGNAL LIVE']Controls the words for the component animation.
textstring-The text content to display and animate.
flipDurationnumber0.12Controls the flip duration for the component animation.
staggernumber0.06Stagger delay in seconds between individual characters/elements.
cycleDelaynumber2400Controls the cycle delay for the component animation.
charset'alpha' | 'alphanumeric' | 'numeric' | (string & {})'alphanumeric'Controls the charset for the component animation.
flipsPerCharnumber8Controls the flips per char for the component animation.
tileColorstring'#111827'Controls the tile color for the component animation.
textColorstring'#f8fafc'Controls the text color for the component animation.
tileRadiusnumber | string8Controls the tile radius for the component animation.
gapnumber | string6Controls the gap for the component animation.
fontSizenumber | string52Font size in pixels, rems, or fluid clamp notation.
loopbooleantrueControls the loop for the component animation.
padTonumber12Controls the pad to for the component animation.