Split Flap Text - React Component | Kokonut UI
Split Flap Text
Departure-board lettering for headlines and status lines. Each tile flips only as far as its new letter, on a hinge, a beat after its neighbour.
Installation
Split Flap Text is a free, open-source React component in the Kokonut UI Texts collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/split-flap-text.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/split-flap-text
Usage
import SplitFlapText from "@/components/kokonutui/split-flap-text";
export default function Example() {
return <SplitFlapText />;
}
Props
textstring- Show this text. Leave out to cycle through
words.
- Show this text. Leave out to cycle through
wordsstring[]Default `[