Skip to content

SegmentedControl

stable

Button group for switching between related views

NavigationInteractive/Storybook ↗
import { SegmentedControl } from "@nodus/design-system"
Loading demo…

Props

itemsrequired
Type SegmentItem[]Default

Array of { value, label } segments

valuerequired
Type stringDefault

Currently active segment value

onChangerequired
Type (value: string) => voidDefault

Called when segment changes

size
Type "sm" | "md" | "lg"Default "md"

Control height

Metadatasemantictypebordermotion
MobileTouch Target

Each segment must be ≥44px tall. On viewports <480px, consider switching to a Select if there are >3 segments, as segments become cramped.

Design Rationale

This component was designed to express:

Explore Related

Was this helpful?