ONONC

Segmented Control

Single-select with a pill that slides to the choice.

a11ymotion

Customize

Options (comma-separated)

The first option is selected by default.

Props

PropTypeDefaultDescription
options*string[]The selectable options.
valuestringControlled selected option.
defaultValuestringoptions[0]Initial selection when uncontrolled.
onValueChange(value: string) => voidFired on selection.
classNamestringExtra classes.