Skip to content

Segmented Button Group Component

A group of segmented buttons.

Properties

NameTypeDefaultDescription
size'sm' | 'md''md'The size of the segmented button group.

Slots

NameDescription
defaultsegmented button group contents, you should use some tap-segmented-button components here

CSS Parts

NameDescription
button-groupThe main container for the button group.

Check this link to learn how to use CSS parts for Segmented Button Group Component.

CSS Properties

TokenDefaultDescription
--tap-segmented-button-group-color-surface--tap-sys-color-surface-secondaryThe background color of the button group.
--tap-segmented-button-group-border-radius--tap-sys-radius-fullThe border radius of the button group.
--tap-segmented-button-group-padding--tap-sys-spacing-3The padding inside the button group.
--tap-segmented-button-group-sm-height--tap-sys-spacing-10The height of the small size button group.
--tap-segmented-button-group-md-height--tap-sys-spacing-11The height of the medium size button group.

Events

NameDescription
segmented-button-group-changeFires when the button group is changed