Numbered tablist with fill bars

Four numbered tabs standing on their own fill bars, so the row reads as a progress strip as well as a switch.

ControlsProFrom Lafz, Pakistan experienceAbout 4k tokens saved
The whole page

Links in the preview stay on the block.

Open on its own

The prompt

One prompt, written to stand on its own: goal, structure, type, colour, spacing, behaviour and the words in square brackets to replace. Paste it into any tool that writes HTML. The Code tab has this block as one file.

668 words
# Numbered tablist with fill bars

One controls component, not a whole page: build it to drop into a page that already exists. Works in Claude, v0, Lovable, Bolt, Cursor or any tool that writes HTML.

## Goal
Four numbered tabs that switch one panel between four versions of the same content. For a translation, a spec sheet or any page that shows one thing several ways.

## Structure
1. Div, role tablist, aria-label, a grid of four equal columns.
2. Four buttons, role tab, each with aria-controls, aria-selected, a roving tabindex.
3. In each, left aligned, 6px apart: a two digit number, a short label, a full width bar.
4. In the bar: a fill span, scaled on the x axis from its left edge.

The full prompt and code are part of Pro

Blocks from free pages include both at no cost.

More like this

Controls

Every controls block

Same page

More from Lafz

See the page