Reed

2,418 photos

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/tab-reed

About this component

A tab bar of fluted glass over a warm gradient: every tab is seen through the reeds, sliced and softened, except the chosen one, which sits under a clear window that slides along the bar so its label and colour read sharp.

Triggers

  • Click
  • State change

Techniques

  • clip-path
  • Filter
  • Gradient
  • CSS transition

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A WAI-ARIA tablist (aria-label "Library") 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

Lead and backing vocals

SeesawGet code
Reception, the cafe and the cloakroom by the lifts.
BacklitGet code
Every hour since midnight, with the busiest marked.
BarrelGet code
A container that clips its children and sets the grid.
BoundsGet code