
Text · Free
Split list
A list split down the middle that parts around the cursor like a lens and turns bold there.
Free on Gumroad: the download arrives in your inbox.
Details
- Category
- Text
- Plan
- Free
- Code
- React + Tailwind, TypeScript · 174 lines
- Files
- SplitList.tsx
- Needs
- React and Tailwind only
- Agents
- MCP server and shadcn registry
About
A long list split down the middle: on each line one name ends at the centre and the next one starts there. Move over it and the lines part around the cursor, most at the line you're on and less above and below, like a lens. The same lens makes them bold: light far away, heavy where you are. It follows the cursor up and down and closes when you leave. On a phone, tap a line.
Good for client lists, credits, team pages, sponsors or a menu that deserves a second look.
React + Tailwind, no other libraries. It moves the lines straight on the page every frame, so a mouse move doesn't re-render React. Respects reduced motion.
Install
With the shadcn CLI:
npx shadcn@latest add https://www.stackd.codes/r/split-list.jsonOr 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 list component to this project. Use the StackD MCP server: call get_component with { "name": "split-list" }, 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.Use
- Copy
SplitList.tsxinto your project (for examplecomponents/SplitList.tsx). - Use it:
import { SplitList } from './components/SplitList'
<SplitList
rows={[
['Studio North', 'Field Notes'],
['Paper & Co', 'Atlas'],
['Common Room', 'Night Shift'],
]}
/>
<SplitList rows={rows} size={22} theme="dark" />
In Next.js the file already starts with 'use client'. In other React setups that line does nothing.
Options
| Prop | Default | What it does |
|---|---|---|
rows | The lines: [left, right], a name each side of the centre | |
size | 30 | Text size in px |
gap | size × 5 | How wide the gap opens at the cursor, in px |
reach | 2.6 | How many lines above and below the lens reaches, roughly |
at | Hold the gap open at this line (0 = first), without a cursor: for covers and still mockups | |
theme | 'light' | 'light' (ink text) or 'dark' (white text) |
className | Classes for the outer element, for example a width |
The bold
The weight goes from 340 (light) to 820 (heavy) smoothly, so the list uses a variable font: SF Pro on Apple devices. Elsewhere it falls back to the system font, which may step between weights instead of gliding. To use your own variable font, change FONT at the top of the file.
Accessibility
It's a plain list (<ul>), so screen readers read every name in order. With reduced motion on, the lines part and turn bold straight away, without springing.
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


