Navigation
Sliding content tabs
Sliding content tabs: A content viewport paired with a capsule tab bar below it, where switching tabs slides the panel in from the side of the chosen tab while a colored highlight glides behind the active label.
Using Sliding content tabs
Sliding content 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 |
|---|---|---|---|
activeTab | select | overview | Options: overview, connections, automations, members |
accent | color | #38BDF8 | No additional limit in the metadata. |
Which frameworks are available for Sliding content tabs?
Sliding content 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 content tabs depend on?
The React metadata lists these npm dependencies beyond React: motion.
What accessibility details are visible in Sliding content tabs?
The React source for Sliding content tabs includes: native elements (button); attributes and handlers (aria-hidden, aria-label, aria-pressed); explicit roles (group). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Sliding content tabs handle reduced motion?
Sliding content tabs reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: reduce ? undefined : { duration: 13, repeat: Infinity, ease: "linear" }; reduce ? undefined : { x: [0, -24, 0] }; reduce ? { duration: 0 } : { duration: 0.42, ease: EASE }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.