Skip to content
Binary Dreams UI Kit reference Segmented

Segmented

Single-select segmented control.

Loading interactive example

Choose Segmented for one selection among a short set of closely related text options. The active indicator slides between options. Initial layout and resize do not animate. Reduced motion places it immediately.

API

MemberTypeKindRequiredDefault
ariaLabelstringpropNoundefined
onValueChange(value: T) => voidcallbackNoundefined
optionLabel(value: T) => stringcallbackNoundefined
optionsreadonly T[]propYes
sizeControlSizepropNo'md'
valueTbindingNoundefined as T | undefined

Examples

Source

Loading source