Segmented control: an hl-segmented radiogroup built on native radios, so keyboard navigation comes for free. Uncontrolled (defaultValue, falling back to the first option) or controlled (value + onValueChange).
hl-segmented
defaultValue
value
onValueChange
Readonly
Optional
Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.
Legacy React Docs
Ignored by React.
Only kept in types for backwards compatibility. Will be removed in a future major release.
Segmented control: an
hl-segmentedradiogroup built on native radios, so keyboard navigation comes for free. Uncontrolled (defaultValue, falling back to the first option) or controlled (value+onValueChange).