Skip to content

Tab Overload

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.

On this page
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-overload
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

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
Defaulttrue
Drift the highlight from window to window while nobody hovers.
interval
number
Default2600
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
Defaultfalse
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

  1. 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.
  2. 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.
  3. 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.
  4. 04Takes control of the highlight with `active`, and tells you which window the pointer entered, or null on leaving, through `onActiveChange`.
  5. 05Colours the highlight with `color`, which accepts a theme token such as "primary" or "chart-1", a CSS variable or any CSS colour.
  6. 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

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" }).

Need help?

Stuck on Tab Overload, or found something off? We read every message.