Split-Flap Board
anime.jsA departures board for jobs. Each changed cell spins through glyphs, staggered by column and row.
- EMBED SUPPORT-QA OK
- RERANK TOP-14 OK
- EVAL TOOL-USE RUN
- DEPLOY ATLAS-M HLD
Install
$ npx shadcn@latest add https://spotcheckui.com/r/split-flap.jsonAlso installs animejs.
Usage
import { SplitFlap } from "@/components/spotcheck/split-flap"
<SplitFlap
rows={jobs}
width={22}
columns={[{ label: "Job", start: 0 }, { label: "Target", start: 8 }]}
accentCharacters={3}
/>Pass new rows and only the cells that differ will spin. Keep the number of rows the same between updates.
Props
- rows * Required
string[]Default —One string per row. Keep the number of rows the same between updates. - width
numberDefault 22Characters per row. - columns
FlapColumn[]Default []Column headings, each starting at a character position. - accentCharacters
numberDefault 0How many characters at the end of each row take the accent. - className
stringDefault —
Keyboard
| Tab | Focus the board so it can be scrolled |
|---|
Reduced motion
Changed cells update at once.