Acrylic

Three streams on air

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/tab-acrylic

About this component

An edge-lit acrylic plate held by two chrome standoffs, its tab names engraved into the glass: light runs along the bottom edge to the tab you choose, rises through the plate, and the engraving fills with cyan light and spills a glow beneath.

Triggers

  • Click
  • State change
  • Glow

Techniques

  • Radial gradient
  • CSS transition
  • CSS variables

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A WAI-ARIA tablist (aria-label "Streams") of buttons with role="tab", aria-selected and aria-controls, a roving tabindex, arrow keys plus Home and End, and one tabpanel per tab; :focus-visible outlines the tab.

Reduced motion

The transitions and loops stop and the component jumps straight to its final state.

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

More tabs

See all

Everything in one place

BudGet code

12 new conversations

MistGet code

2,418 photos

ReedGet code

Lead and backing vocals

SeesawGet code