Island

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/tab-island

About this component

A soft-extruded dock of five stations. The chosen one is a raised puck that slides along the bar on a spring, lifting its glyph into coral light while the others sit flush and dim; the last station is a person with a presence dot.

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 "Sections") 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 puck and the avatar are aria-hidden.

Reduced motion

The puck and glyphs switch without transition.

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

More tabs

See all

LimelightGet code

MacropadGet code

RailGet code

TideGet code