Skip to content

Button

The <ac-button> component renders either a <button> or <a> element depending on whether href is set.

primary · secondary · ghost · outline · link · danger
xs · sm · md · lg
disabled · loading
icon-only buttons
<button class="ac-button ac-button--primary ac-button--md">Click me</button>
<a href="#" class="ac-button ac-button--secondary ac-button--sm">Link button</a>
AttributeTypeDefaultDescription
variantprimary | secondary | ghost | outline | link | dangerprimaryVisual style
sizexs | sm | md | lgmdButton size
hrefstringRenders an <a> element
typebutton | submit | resetbuttonNative button type
disabledbooleanfalseDisables the button
loadingbooleanfalseShows spinner, sets aria-busy
targetstringLink target (requires href)
relstringLink rel (requires href)