ContentSwitcher
Carbon-spec ContentSwitcher. Two or more equal-weight options where exactly one is selected at a time. Visually distinct from Tabs (which implies a panel below). Wraps Radix ToggleGroup type="single".
Live playground
Edit the JSX below — preview updates instantly. Switch brand × tone in the toolbar to see the same component re-themed in place.
Edit JSX — preview updates livereact-live
import { ContentSwitcher, ContentSwitcherItem } from "@avala/design"; <ContentSwitcher size="md" size="md"> <ContentSwitcherItem /> </ContentSwitcher>
All variants
The Storybook stories file rendered as an iframe — every variant, every size, every state, baselined for visual regression.
patterns-contentswitcher--defaultOpen in Storybook →
When to use
- Two to four equal-weight options that swap a small content region (chart granularity: Day / Week / Month; view mode: Grid / List; theme: Light / Dark).
- Dense surfaces where a tabs row would feel too heavy.