
Text · €7
Split flap
Text on flipping split-flap letters, like an old departures board.
Pay once on Gumroad: the download, plus a licence key for the registry and the MCP server.
Details
- Category
- Text
- Plan
- Paid, €7 once
- Code
- React + Tailwind, TypeScript · 205 lines
- Files
- SplitFlap.tsx
- Needs
- React and Tailwind only
- Agents
- MCP server and shadcn registry
About
Text on little tiles that flip like an old departure board. When the value changes, each tile runs through the characters between the old one and the new one, top half falling over the bottom, and the columns start one after another so the change rolls across the board. White and black versions. React + Tailwind, no other libraries. Respects reduced motion.
Install
Once: add the StackD registry to components.json, with the licence key from your receipt in STACKD_LICENSE_KEY (in .env.local):
"registries": {
"@stackd": {
"url": "https://www.stackd.codes/r/{name}.json",
"headers": { "X-License-Key": "${STACKD_LICENSE_KEY}" }
}
}With the shadcn CLI:
npx shadcn@latest add @stackd/split-flapOr let your agent add it through the StackD MCP server:
claude mcp add --transport http stackd https://www.stackd.codes/mcpPrompt for your agent
Paste it into Claude Code, Cursor, Codex or VS Code once the MCP server is connected.
Add the StackD Split flap component to this project. Use the StackD MCP server: call get_component with { "name": "split-flap" }, write the files at the paths it gives and install any npm packages it lists. Then use it where it fits, following its README for the props, and keep its own styles. It is a paid component: if the server says it needs a licence, tell me where to buy it.Use
- Copy
SplitFlap.tsxinto your project (for examplecomponents/SplitFlap.tsx). - Use it:
import { SplitFlap } from './components/SplitFlap'
<SplitFlap value="HELLO" />
<SplitFlap value="€24.00" length={8} align="right" theme="light" />
Change value and the board flips to it. Give it a length so the board keeps the same number of tiles between values.
const [price, setPrice] = useState('€24.00')
<SplitFlap value={price} length={7} align="right" />
<button onClick={() => setPrice('€39.00')}>Upgrade</button>
In Next.js the file already starts with 'use client'. In other React setups that line does nothing.
Options
| Prop | Default | What it does |
|---|---|---|
value | The text to show. Lowercase becomes uppercase | |
length | the text's length | Number of tiles. Shorter text is padded with blank tiles |
align | 'left' | 'left', 'center' or 'right' inside length |
theme | 'dark' | 'dark' (black tiles) or 'light' (white tiles) |
size | 64 | Tile height in px. The width follows |
speed | 70 | Milliseconds per flip |
stagger | 45 | Milliseconds between one column starting and the next |
chars | see below | The characters a tile can show, in the order it runs through them |
Default characters: space, A–Z, 0–9, € $ £ % . , : - + / ! ? & #. Anything else shows as a blank tile. Add your own by passing chars (for example CHARS + "ÑÇ"). CHARS is exported.
Colours from StackD
White #FFFFFF · Ink #141310 · Wine #901919 · Olive #6C8544 · Ochre #BE9344 · Lilac #C9B8FF
Licence
You can use it in personal and commercial projects. Don't resell or share the component on its own.
Made by StackD · stackd.codes


