Slash
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initTabsSlash(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/tab-slashAbout 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