Button

Component

Button

The main action, with a soft press.

Classes

ClassType
btnComponentThe button.
btn-smSizeSmall.
btn-lgSizeLarge.
primaryColorIndigo by default. Used when you set no color.
secondaryColorPink by default.
tertiaryColorTeal by default.
neutralColorGray by default.
successColorGreen by default.
errorColorRed by default.
warningColorAmber by default.
infoColorSky by default.
loadingStateShows the sweep and a spinner. Put it on with a color, as in btn primary loading.

Colors

<button class="btn primary" type="button"><span>Primary</span></button>
<button class="btn secondary" type="button"><span>Secondary</span></button>
<button class="btn tertiary" type="button"><span>Tertiary</span></button>
<button class="btn neutral" type="button"><span>Neutral</span></button>
<button class="btn success" type="button"><span>Success</span></button>
<button class="btn error" type="button"><span>Error</span></button>
<button class="btn warning" type="button"><span>Warning</span></button>
<button class="btn info" type="button"><span>Info</span></button>

Sizes

Regular is btn alone. btn-sm and btn-lg are the other sizes.

<button class="btn btn-sm" type="button"><span>Small</span></button>
<button class="btn" type="button"><span>Regular</span></button>
<button class="btn btn-lg" type="button"><span>Large</span></button>

Loading and disabled

Use the disabled attribute. Put the words in a span so the press lights stay behind them.

<button class="btn primary loading" type="button"><span>Loading</span></button>
<button class="btn" type="button" disabled><span>Disabled</span></button>

A button with no color class is primary. neutral is a light face with dark text. The other colors are translucent solids.