# Buttons

Buttons are used to perform an action. The main buttons in the application are the primary and secondary buttons. Buttons, like all Boostrap-vue components can be themed by setting the variant prop on the component to one of the theme-color map keys. To create a button that looks like a link, set the variant value to link.

Learn more about Bootstrap-vue buttons (opens new window)

# Icon only buttons

Add btn-icon-only class to the button and add title attribute to get helper text on hover over the button.

# Enabled buttons

Button examples

// Enabled Buttons
<b-button variant="primary">Primary</b-button>
<b-button variant="primary">
  <icon-add />
  <span>Primary with icon</span>
</b-button>
<b-button variant="secondary">Secondary</b-button>
<b-button variant="danger">Danger</b-button>
<b-button variant="link">Link Button</b-button>
<b-button variant="link">
  <icon-add />
  <span>Link Button</span>
</b-button>
<b-button variant="link" title="Delete" class="btn-icon-only">
  <icon-trashcan />
</b-button>

# Disabled buttons

Disabled button examples

// Disabled Buttons
<b-button disabled variant="primary">Primary</b-button>
<b-button disabled variant="primary">
  <icon-add />
  <span>Primary with icon</span>
</b-button>
<b-button disabled variant="secondary">Secondary</b-button>
<b-button disabled variant="danger">Danger</b-button>
<b-button disabled variant="link">Link Button</b-button>
<b-button disabled variant="link">
  <icon-add />
  <span>Link Button</span>
</b-button>
<b-button disabled variant="link" title="Delete" class="btn-icon-only">
  <icon-trashcan />
</b-button>