A small stack of overlapping browser windows for a 4:3 feature or bento card. Point at a window and it comes forward; left alone, the highlight drifts from one to the next.
Used for
- Bento card art
- Feature card visual
- Too many tabs story
- 4:3 hero tile
Examples
Windows
Highlight
Accent
Installation
npx knowns-ui@latest add tab-overloadFor Claude Code, Cursor or Codex: installs it and wires the props to your own data.
Paste this into your coding agent (Claude Code, Cursor, Codex). It checks your project, sets up the registry, runs the install and verifies it.
Install prompt
Install Tab overload from Knowns UI into this project. Work step by step, show me each change, and ask before you edit files outside this project.
Context: Knowns UI (https://ui.knowns.dev) is a shadcn registry. Items land in the project as source files. Docs: https://ui.knowns.dev/docs/tab-overload
1. Check the project first. Stop and tell me if any of these is missing:
- React 19 and Tailwind CSS v4.
- A components.json at the project root. If there is none, ask me before running `npx knowns-ui@latest init --no-key` (it runs shadcn init when needed, then adds the registries).
2. Run:
```bash
npx knowns-ui@latest add tab-overload
```
It writes these files:
- lib/knowns/run.ts
- lib/knowns/json.tsx
- lib/knowns/status.ts
- lib/knowns/tone.ts
- lib/knowns/types.ts
- lib/knowns/use-abortable.ts
- lib/knowns/utils.ts
- components/ui/knowns/illustrations/illust-utils.ts
- components/ui/knowns/illustrations/use-in-view.ts
- components/ui/knowns/illustrations/tab-overload.tsx
and installs these npm packages: clsx@^2.1.1, tailwind-merge@^3.7.0.
3. While it runs:
- It also adds a few @keyframes (all named kn-*) to the global CSS file (globals.css or the file components.json points at). Let it: they only add animations.
- If it asks to overwrite files under lib/knowns/: these are shared by every Knowns UI item. List them, say whether I changed them (check git), and ask me before you answer.
- If it asks to overwrite any other file, show me the diff and ask me.
4. Verify:
- Every file in the list above exists.
- The project type-checks (for example `npx tsc --noEmit`) and the dev build has no new errors.
5. Use it: follow the examples and props on https://ui.knowns.dev/docs/tab-overload, and ask me if anything about my data is unclear.
If the Knowns UI MCP server is connected (https://ui.knowns.dev/docs/ai-and-mcp), use get_component({ name: "tab-overload" }) or search_docs for details.
Finish with a short summary: the files you added or changed, the packages you installed, and anything I still need to do.Props
- windows
string[]- Default
["Docs", "Inbox", "Board", "Logs"] - Tab titles, one window each (2 to 5).
- active
number- Highlight this window (0-based) and ignore the pointer and the cycle.
- onActiveChange
(index: number | null) => void- The pointer moved onto a window, or left (null).
- cycle
boolean- Default
true - Drift the highlight from window to window while nobody hovers.
- interval
number- Default
2600 - Milliseconds each window stays highlighted (at least 900).
- color
string- Default
"#6366f1" - Accent of the highlighted window: a theme token, a CSS variable or any CSS colour.
- paused
boolean- Default
false - Stops the cycle. It also stops offscreen and in hidden tabs.
- label
string- The accessible description. Default names the windows.
- className
string- On the root, which is a 4:3 box that fills its card. Sizes use container units, so it scales with the card.
- Motion
-- Transitions only (transform, shadow, colour; 420 ms) and one timer per cycle step: no frame loop. Reduced motion: no cycle and no transitions, one window highlighted.
| Prop | Type | Default | Description |
|---|---|---|---|
| windows | string[] | ["Docs", "Inbox", "Board", "Logs"] | Tab titles, one window each (2 to 5). |
| active | number | - | Highlight this window (0-based) and ignore the pointer and the cycle. |
| onActiveChange | (index: number | null) => void | - | The pointer moved onto a window, or left (null). |
| cycle | boolean | true | Drift the highlight from window to window while nobody hovers. |
| interval | number | 2600 | Milliseconds each window stays highlighted (at least 900). |
| color | string | "#6366f1" | Accent of the highlighted window: a theme token, a CSS variable or any CSS colour. |
| paused | boolean | false | Stops the cycle. It also stops offscreen and in hidden tabs. |
| label | string | - | The accessible description. Default names the windows. |
| className | string | - | On the root, which is a 4:3 box that fills its card. Sizes use container units, so it scales with the card. |
| Motion | - | - | Transitions only (transform, shadow, colour; 420 ms) and one timer per cycle step: no frame loop. Reduced motion: no cycle and no transitions, one window highlighted. |
What it handles
- 01Draws two to five overlapping browser windows from `windows`, each with three dots, a tab title and a few lines of fake page, laid out in a diagonal cascade so every tab label stays visible.
- 02Brings the window under the pointer to the front, raising it slightly and tinting its border, shadow, tab edge and first line in the accent.
- 03Drifts the highlight from window to window every `interval` milliseconds (2600 by default, 900 at the least) while nobody hovers, and `cycle` set to false turns that off.
- 04Takes control of the highlight with `active`, and tells you which window the pointer entered, or null on leaving, through `onActiveChange`.
- 05Colours the highlight with `color`, which accepts a theme token such as "primary" or "chart-1", a CSS variable or any CSS colour.
- 06Fills a 4:3 box and sizes everything in container units, so it scales with its card, and reads as one image with a `label` that defaults to the window titles.
States
- First render
- The second window is up front
- none
- Window comes forward
- It lifts, scales up and its shadow and border take the accent
- 280ms, ease out
- Tab label and first line
- Their colour moves to the accent
- 280ms, ease out
- Drift
- The highlight moves to the next window on its own every `interval`
- none, at once
- Offscreen, hidden tab or paused
- The drift stops
- none
- Reduced motion
- The drift stops and the colour and lift changes land at once
- 0ms
| State | What moves | Timing |
|---|---|---|
| First render | The second window is up front | none |
| Window comes forward | It lifts, scales up and its shadow and border take the accent | 280ms, ease out |
| Tab label and first line | Their colour moves to the accent | 280ms, ease out |
| Drift | The highlight moves to the next window on its own every `interval` | none, at once |
| Offscreen, hidden tab or paused | The drift stops | none |
| Reduced motion | The drift stops and the colour and lift changes land at once | 0ms |
Works with
When to use
When to use
- A feature or bento card about juggling too many windows, tabs or tools: the one you point at comes forward.
- A quiet 4:3 drawing that fits a card grid next to Tool Beam and Prompt to Team.
When not to use
- A full-width hero: it is drawn small and scales with its card, so keep it in a card.
- Showing real connections between tools: use Tool Beam.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Tab Overload to my app and wire it to my own data.
- I need a feature or bento card about juggling too many windows, tabs or tools: the one you point at comes forward. Set that up with the Knowns UI Tab Overload.
- Which Tab Overload props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "tab-overload" }) and search_docs({ query: "tab overload" }).