Button

Button is used to initiate actions on a page or form.

On this page

  • Updated 29 Sept 2023
  • Stable

Playground

No preview available
leadingVisual?
trailingVisual?
dropdown?
counter?
variant
size
state
alignContent

Props

NameTypeValuesDefault
trailingVisualInstance swap-EXTERNAL_COMPONENT
leadingVisual?Booleantruefalsefalse
trailingVisual?Booleantruefalsefalse
dropdown?Booleantruefalsefalse
counter?Booleantruefalsefalse
leadingVisualInstance swap-EXTERNAL_COMPONENT
variantVariantprimarysecondarydangerinvisiblesecondary
sizeVariantsmallmedium (default)largemedium (default)
stateVariantrest (default)focushoverpresseddisabledrest (default)
alignContentVariantcenterstartcenter

trailingVisual

leadingVisual: 26704:84285, trailingVisual?: false, counter?: false, dropdown?: false, leadingVisual?: false, trailingVisual: 26704:84275, variant: secondary, size: medium (default), state: rest (default), alignContent: center
26704:84275

leadingVisual

leadingVisual: 26704:84285, trailingVisual?: false, counter?: false, dropdown?: false, leadingVisual?: false, trailingVisual: 26704:84275, variant: secondary, size: medium (default), state: rest (default), alignContent: center
26704:84285

variant

leadingVisual: 26704:84285, trailingVisual?: false, counter?: false, dropdown?: false, leadingVisual?: false, trailingVisual: 26704:84275, variant: secondary, size: medium (default), state: rest (default), alignContent: center
secondary
leadingVisual: 26704:84285, leadingVisual?: false, counter?: false, trailingVisual?: false, dropdown?: false, trailingVisual: 26704:84275, variant: primary, size: medium (default), state: rest (default), alignContent: center
primary
leadingVisual: 26704:84285, counter?: false, dropdown?: false, trailingVisual?: false, leadingVisual?: false, trailingVisual: 26704:84275, variant: danger, size: medium (default), state: rest (default), alignContent: center
danger
trailingVisual?: false, leadingVisual?: false, leadingVisual: 26704:84285, counter?: false, dropdown?: false, trailingVisual: 26704:84275, variant: invisible, size: medium (default), state: rest (default), alignContent: center
invisible

size

leadingVisual: 26704:84285, trailingVisual?: false, counter?: false, dropdown?: false, leadingVisual?: false, trailingVisual: 26704:84275, variant: secondary, size: medium (default), state: rest (default), alignContent: center
medium (default)
leadingVisual: 26704:84285, counter?: false, leadingVisual?: false, dropdown?: false, trailingVisual?: false, trailingVisual: 26704:84275, variant: secondary, size: small, state: rest (default), alignContent: center
small
leadingVisual: 26704:84285, trailingVisual: 26704:84275, counter?: false, leadingVisual?: false, dropdown?: false, trailingVisual?: false, variant: secondary, size: large, state: rest (default), alignContent: center
large

state

leadingVisual: 26704:84285, trailingVisual?: false, counter?: false, dropdown?: false, leadingVisual?: false, trailingVisual: 26704:84275, variant: secondary, size: medium (default), state: rest (default), alignContent: center
rest (default)
leadingVisual: 26704:84285, leadingVisual?: false, trailingVisual?: false, dropdown?: false, counter?: false, trailingVisual: 26704:84275, variant: secondary, size: medium (default), state: focus, alignContent: center
focus
leadingVisual: 26704:84285, leadingVisual?: false, dropdown?: false, trailingVisual: 26704:84275, trailingVisual?: false, counter?: false, variant: secondary, size: medium (default), state: hover, alignContent: center
hover
leadingVisual: 26704:84285, trailingVisual: 26704:84275, counter?: false, leadingVisual?: false, dropdown?: false, trailingVisual?: false, variant: secondary, size: medium (default), state: pressed, alignContent: center
pressed
leadingVisual: 26704:84285, leadingVisual?: false, trailingVisual?: false, trailingVisual: 26704:84275, counter?: false, dropdown?: false, variant: secondary, size: medium (default), state: disabled, alignContent: center
disabled

alignContent

leadingVisual: 26704:84285, trailingVisual?: false, counter?: false, dropdown?: false, leadingVisual?: false, trailingVisual: 26704:84275, variant: secondary, size: medium (default), state: rest (default), alignContent: center
center
leadingVisual: 26704:84285, leadingVisual?: false, counter?: false, dropdown?: false, trailingVisual?: false, trailingVisual: 26704:84275, variant: secondary, size: medium (default), state: rest (default), alignContent: start
start