Bud

Everything in one place

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/tab-bud

About this component

A liquid glass bar that buds the chosen tab off as its own bead of violet glass, held to the rest of the bar by two thin liquid necks; switching runs the bead along the bar like a drop, its leading edge first and its trailing edge catching up.

Triggers

  • Click
  • State change
  • Morph

Techniques

  • @property
  • CSS variables
  • CSS transition

Difficulty

Advanced

Accessibility

Keyboard and screen readers

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

12 new conversations

MistGet code

2,418 photos

ReedGet code

Lead and backing vocals

SeesawGet code
Reception, the cafe and the cloakroom by the lifts.
BacklitGet code