Slash

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/tab-slash

About this component

A fire tab bar: the active tab burns, embers rising off it; switching throws a curved slash of flame from the old tab to the new one, sparks raining off its arc, and the new tab catches with a flare.

Triggers

  • Click
  • State change
  • Glow

Techniques

  • stroke-dashoffset
  • Keyframes
  • requestAnimationFrame
  • SVG

Difficulty

Advanced

Accessibility

Keyboard and screen readers

role="tablist" with role="tab" buttons and aria-selected; Left and Right arrows move the selection, and only the selected tab is in the tab order.

Reduced motion

The highlight moves without effects.

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

More tabs

See all

AcrylicGet code

BudGet code

MistGet code

ReedGet code