Skip to content
kapable

SegmentedControl

Forms · 1 export · v0.1.0 · showcase

Compact exclusive choice built on native radios and arrow-key behavior.

Browse 72 component families
View

Usage

SegmentedControl usage
<SegmentedControl label="View" name="view" options={views} />

API

SegmentedControl API

SegmentedControlProps

SegmentedControl props
proptypenotes
labelstringAccessible group name (sr-only legend — segments are self-evident chrome).
namestringShared form field name.
optionsSegmentedOption[]
defaultValue?stringValue checked on first render (uncontrolled). Defaults to the first option.
disabled?boolean
size?'sm' | 'md''md' (default) or 'sm' for dense rows.
mix?MixInput

More in Forms

More in Forms