Segment Control

Attribute Type Documentation Default Value
id :any

HTML id attribute

class :any

additional CSS classes

size :string

size variant

color :string

color variant for active item

variant :string

visual style variant

full :boolean

expand to full width

false
icon_only :boolean

icon-only mode (no text labels)

false
multi :boolean

allow multiple selection

false
label :string

accessible label for the segment group (aria-label)

rest :global
Required item * :slot

Segment items

Show slot attributes Hide slot attributes
active :boolean
disabled :boolean
icon :string
value :string
class :any
label :string

accessible label for icon-only items (aria-label)

[Multiple values]