Twenty four language code switch

A dense row of two letter language codes with one pill that slides to whichever code is chosen.

MenusProFrom Tolk, Europe 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.

625 words
# Twenty four language code switch

One menus 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
A row of two letter language codes that switches which language one line of copy, usually a headline, is shown in. For a page that ships in many locales.

## Structure
1. Div, role radiogroup, aria-label naming what it switches.
2. A pill span, aria-hidden, first, sitting behind the codes.
3. Twenty four buttons, role radio, on a grid of 40px columns.
4. In each: the uppercase code, then a hidden span with a comma and the language name.

The full prompt and code are part of Pro

Blocks from free pages include both at no cost.

More like this

Menus

Every menus block

Same page

More from Tolk

See the page