Navigation
Sliding Panel Tabs
Sliding Panel Tabs: Two tabs in a rounded pill track with a highlight that slides between them, crossfading a settings-style panel underneath without any layout jump.
Using Sliding Panel Tabs
Sliding Panel Tabs 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 | #F5C542 | No additional limit in the metadata. |
defaultTab | select | account | Options: account, password |
Which frameworks are available for Sliding Panel Tabs?
Sliding Panel Tabs 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 Sliding Panel Tabs depend on?
The React metadata lists these npm dependencies beyond React: motion, clsx.
What accessibility details are visible in Sliding Panel Tabs?
The React source for Sliding Panel Tabs includes: native elements (button, input, label); attributes and handlers (aria-controls, aria-hidden, aria-label, aria-labelledby, aria-selected, onKeyDown, tabIndex); explicit roles (tab, tablist, tabpanel); key comparisons (ArrowLeft, ArrowRight). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Sliding Panel Tabs handle reduced motion?
Sliding Panel Tabs reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: duration: reduceMotion ? 0 : 0.18; spring: reduceMotion ? { duration: 0 } : { type: "spring", stiffness: 460, damping: 34 }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.