Kintsugi

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/tab-kintsugi

About this component

A slab of crackle-glazed ceramic with a crack running along its foot. The crack under the picked tab is mended in gold, and choosing another sends the gold flowing along the crack to it.

Triggers

  • Click
  • State change
  • Draw
  • Glow

Techniques

  • SVG
  • SVG stroke
  • stroke-dashoffset
  • CSS transition
  • CSS variables

Difficulty

Advanced

Accessibility

Keyboard and screen readers

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

Reduced motion

The transitions are switched off, so the selection changes at once.

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

More tabs

See all
KnitGet code
LouvreGet code
MarbledGet code
PolarGet code