Invisible Docs
GalerieTokens

Button-Gruppe — ui.button-group

Kapselrunde Button-Gruppe: verbundene Secondary-Buttons mit geteilten Rändern, aktives Segment hervorgehoben

UI Elementv1.0.3Aktionenweb.documentweb.applicationdesktop.shellbuilder.preview

Beispiele

Zeitraum-Wahl (aktives Segment)

Eigenschaften

PropTypDefault
items *array—
paddingstring: standard | none | sm | md | lg | xl"standard"
marginstring: standard | none | sm | md | lg | xl"standard"
borderstring: standard | none | hairline | strong"standard"
radiusstring: standard | none | control | surface | pill"standard"
textColorstring""
backgroundColorstring""
shadowstring: standard | none | sm | md | lg"standard"
widthstring: standard | full"standard"
alignSelfstring: standard | start | center | end"standard"
anchorstring""

Stellschrauben (Komponenten-Tokens)

TokenDefault
--button-group-action-on-secondaryvar(--color-action-on-secondary)
--button-group-action-secondaryvar(--color-action-secondary)
--button-group-action-secondary-hovervar(--color-action-secondary-hover)
--button-group-border-strongvar(--color-border-strong)
--button-group-elevation-controlvar(--elevation-control)
--button-group-radius-controlvar(--shape-pill)
--button-group-surface-sunkenvar(--color-surface-sunken)

Genutzte Design-Tokens

border.hairline color.action.on-secondary color.action.secondary color.action.secondary-border color.action.secondary-hover color.border.strong color.surface.sunken duration.fast easing.standard elevation.control focus.ring-color focus.ring-width size.2 size.4 text.sm weight.semibold