Island
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initTabsIsland(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/tab-islandAbout 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