SegmentedControl

A row of segments. The user chooses one option. Use it for 2 to 5 short options. Bind value with { "@path": "/x" } to read it.

Examples

Loading examples…

Props

PropTypeDescription
checksobject[]Validation rules. The control shows the first failed one
valuestringBind it with { "@path": "/x" } to read what the user entered
optionsstring | object[]Strings or { "value", "label", "description"? }
labelstringThe visible label of the field. Always set it
blockbooleanFull width
size"sm" | "md" | "lg" | "xl"Default "lg"
pillbooleanDefault true
variant"solid" | "soft" | "outline" | "ghost"Default "ghost"
disabledboolean

Link to SegmentedControl · All standard components

On this page