Console

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/tab-console

About this component

Four square keys cut from one slab, each with a glyph and a small LED strip. Choose a key and a dark pocket slides across the slab to sit under it on a spring; the glyph steps up into white light and its LED turns lime a beat later.

Triggers

  • Click
  • State change
  • Spring
  • Glow

Techniques

  • CSS transition
  • CSS variables
  • SVG
  • Pseudo elements

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A WAI-ARIA tablist (aria-label "Console") of buttons with role="tab", each named by aria-label since it shows only a glyph, with aria-selected and aria-controls, a roving tabindex, arrow keys plus Home and End, and one tabpanel per tab; the pocket and the LED strips are aria-hidden.

Reduced motion

The pocket, glyphs and LEDs switch without transition.

Use it in anything you build, commercial and client work included. Licence

More tabs

See all

IslandGet code

LimelightGet code

MacropadGet code

RailGet code