Button
Change anything and watch the Button follow, then find every property it takes below.
FreeReact and Vue
Properties#
Appearance4
variantThe level of emphasis.
primarysecondarytertiaryDefaultprimaryintentThe colour, matched to what the action does.
brandneutralsuccesswarningerrorinverseOnDarkDefaultbrandsizeHeight, padding, radius and type size together.
xxsxssmmdlgxlDefaultlgpillFully rounded ends.
booleanDefaultfalseContent7
iconOnlyA square button with one icon. Needs aria-label.
booleanDefaultfalseleftIconShow the icon before the label.
booleanDefaulttruerightIconShow the icon after the label.
booleanDefaulttrueswapLeftIconReplace the left icon.
ReactNodeswapRightIconReplace the right icon.
ReactNodeswapSoloIconReplace the icon of an icon-only button.
ReactNodechildrenThe label.
ReactNodeBehaviour2
loadingShows a spinner, sets aria-busy and disables the button.
booleanDefaultfalsedisabledInert and removed from the tab order.
booleanDefaultfalse