Navigation
Segmented toggle tabs
Segmented toggle tabs: A compact pill-shaped segmented control for switching between a small number of short options, with a filled block sliding to whichever segment is selected.
Using Segmented toggle tabs
Segmented toggle tabs uses the inline 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 | #FF6A1F | No additional limit in the metadata. |
defaultRange | select | week | Options: day, week, month, year |
size | select | medium | Options: small, medium, large |
Which frameworks are available for Segmented toggle tabs?
Segmented toggle 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 Segmented toggle tabs depend on?
The React metadata lists these npm dependencies beyond React: motion.
What accessibility details are visible in Segmented toggle tabs?
The React source for Segmented toggle tabs includes: native elements (button); attributes and handlers (aria-checked, aria-hidden, aria-label, onKeyDown, tabIndex); explicit roles (radio, radiogroup); key comparisons (ArrowLeft, ArrowRight). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Segmented toggle tabs handle reduced motion?
Segmented toggle tabs 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.