Navigation
Panel Tab Switcher
Panel Tab Switcher: A rounded tab bar where a background indicator morphs to the active tab's exact size and position, revealing a distinct content panel beneath it.
Using Panel Tab Switcher
Panel Tab Switcher uses the card preview frame with a light/dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
accentColor | color | #9BE15D | No additional limit in the metadata. |
variant | select | filled | Options: filled, underline |
tabCount | number | 3 | From 2 to 5; step 1 |
Which frameworks are available for Panel Tab Switcher?
Panel Tab Switcher is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Panel Tab Switcher depend on?
The React metadata lists these npm dependencies beyond React: motion, clsx.
What accessibility details are visible in Panel Tab Switcher?
The React source for Panel Tab Switcher includes: native elements (button); attributes and handlers (aria-controls, aria-hidden, aria-label, aria-labelledby, aria-selected, onKeyDown, tabIndex); explicit roles (tab, tablist, tabpanel); key comparisons (ArrowLeft, ArrowRight, End, Home). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Panel Tab Switcher handle reduced motion?
Panel Tab Switcher reads the motion preference in its React source through matchMedia(prefers-reduced-motion). Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.