Batik

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/tab-batik

About this component

A strip of indigo batik with a pale wax-resist flower motif and the fine crackle of broken wax. The picked tab is dyed saffron, the dye wicking out from the label with a ragged edge while the old patch rinses back.

Triggers

  • Click
  • State change
  • Fill

Techniques

  • @property
  • Radial gradient
  • SVG filter
  • CSS transition
  • mix-blend-mode

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A WAI-ARIA tablist (aria-label "Cloth") 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
ContourGet code
DripGet code
EnamelGet code
ExpressiveGet code