Gouache

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/tab-gouache

About this component

A strip of rag paper with a shape cut from gouache-painted paper behind the picked tab. Switching slides the cut-out over while it changes shape and colour, its edges ragged like scissor-cut paper.

Triggers

  • Click
  • State change
  • Morph

Techniques

  • clip-path
  • SVG filter
  • CSS transition

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A WAI-ARIA tablist (aria-label "Studio") 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
GuillochéGet code
InlayGet code
KintsugiGet code
KnitGet code