Button

Extended from PrimeVue Button and NuxtLink

When using a button, please ensure that the copy style is Sentence case.

Icons inside default buttons are sized automatically to 24px; and in small buttons to 18px.

Primary

This is the default style for buttons. For a small button, use the size="sm" prop value.

Description
Default
Normal
Disabled
Description
Default (text with icon)
Normal
Disabled
Description
Default (icon only)
Normal
Disabled
Description
Small
Normal
Disabled
Description
Small (text with icon)
Normal
Disabled
Description
Small (icon only)
Normal
Disabled

Secondary

For this style, add the outline boolean prop.

Description
Default
Normal
Disabled
Description
Default (text with icon)
Normal
Disabled
Description
Default (icon only)
Normal
Disabled
Description
Small
Normal
Disabled
Description
Small (text with icon)
Normal
Disabled
Description
Small (icon only)
Normal
Disabled

Link

This variant will render a button with the appearance of a link while maintaining the default padding and size of a button. This is useful when the link button will appear next to another button (e.g. within a modal), as they will remain vertically aligned relative to each other.

Use the variant="link" prop value to enable it.

Description
Default
Normal
Disabled
Description
Small
Normal
Disabled
Description
Default with arrow
Normal
Disabled
Description
Small with arrow
Normal
Disabled
Description
Inline
Normal

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do incididunt ut labore et dolore magna aliqua.

Disabled

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do incididunt ut labore et dolore magna aliqua.

Dark background

These variants are only meant to be used against a dark blue background. Use the variant="dark-bg" prop value to enable them.

Primary

Description
Default
Normal
Disabled
Description
Default (text with icon)
Normal
Disabled
Description
Default (icon only)
Normal
Disabled
Description
Small
Normal
Disabled
Description
Small (text with icon)
Normal
Disabled
Description
Small (icon only)
Normal
Disabled

Secondary

For this style, add the outline boolean prop.

Description
Default
Normal
Disabled
Description
Default (text with icon)
Normal
Disabled
Description
Default (icon only)
Normal
Disabled
Description
Small
Normal
Disabled
Description
Small (text with icon)
Normal
Disabled
Description
Small (icon only)
Normal
Disabled

Loading

This example shows how to use the spinner from Bootstrap Vue to display a loading indicator within a button.

Props

Name
href
Type
String
Default
null
Description
An external URL to navigate to when using a button as a link.
Name
inline
Type
Boolean
Default
false
Description
Use only for the 'link' variant. If true, removes the fixed padding and height from the button so it can be aligned with other text next to it.
Name
outline
Type
Boolean
Default
false
Description
If true, changes to the outline version of the specified variant.
Name
size
Type
String
Default
"md"
Description
The size of the button: 'md', or 'sm'.
Name
to
Type
String
Default
null
Description
An internal path to navigate to when using a button as a link
Name
variant
Type
String
Default
"primary"
Description
The name of the desired button variant: 'primary', 'dark-bg', or 'link'.