Skip to content

Button

Single clickable action control with label, optional icons, and shared design tokens (appearance, tone, size, density).

HTML tag: c-e1e50e9eb30704a5cbb1fd51ba1afed37

  • single primary or secondary action
  • submit, cancel, or one-off icon button
  • one clickable control (not a button group)
PropTypeDefaultDescription
labelString
icon_leftString
icon_rightString
appearanceStringsolid
toneStringprimary
sizeStringmd
disabledBoolean
aria_labelString
roleStringbutton
tabindexString0
iconString
icon_behaviorStringnone
densityStringcomfortable
left_icon_activeString
right_icon_activeString
show_left_iconBoolean
show_right_iconBoolean
has_left_iconBoolean
has_right_iconBoolean
full_widthBoolean
label_positionStringinline
label_linesNumber1
alignStringcenter
label_wrap_modeStringwrap
  • One primary action per ab-button instance.
  • Set .label and/or icons; use .aria_label for icon-only buttons.
  • appearance: solid | soft | outline | ghost | link; tone: primary | success | warning | danger.
  • Handle interaction via native @click (no custom action event on this component).

Do not build toolbars from many sibling ab-buttons when ab-actions fits. Do not use ab-button inside ab-actions markup manually — pass the actions array to ab-actions.

<c-e1e50e9eb30704a5cbb1fd51ba1afed37 .label=${'Save'} .appearance=${'solid'} .tone=${'primary'} .size=${'md'} ?disabled=${saving} @click=${onSave}></c-e1e50e9eb30704a5cbb1fd51ba1afed37>