Components
Segment group

Segment Group

The SegmentGroup component offers an effective way to organize and navigate between multiple sections within a single view. It provides a clear and compact option to improve usability and accessibility.

API Reference

Root

PropTypeDefault
asChild
boolean
defaultValue
string
dir
'ltr' | 'rtl'
disabled
boolean
form
string
getRootNode
() => ShadowRoot | Node | Document
id
string
ids
Partial<{ root: string label: string indicator: string item(value: string): string itemLabel(value: string): string itemControl(value: string): string itemHiddenInput(value: string): string }>
name
string
onValueChange
(details: ValueChangeDetails) => void
orientation
'horizontal' | 'vertical'
value
string

Item

PropTypeDefault
value
string
asChild
boolean
disabled
boolean
invalid
boolean

Label

PropTypeDefault
asChild
boolean

ItemText

PropTypeDefault
asChild
boolean

Indicator

PropTypeDefault
asChild
boolean

ItemControl

PropTypeDefault
asChild
boolean