Button API
API reference docs for the Stash Button
component. Learn about the props, CSS, and other APIs of this exported module.
Import
ts
import Button from '@leaflink/stash/Button.vue';
Props
Name | Type | Default | Description |
---|---|---|---|
color | "blue" | "red" | undefined | Renders a color variant |
disabled | boolean | undefined | Disables the button |
href | string | '' | Button link. If defined, the button will render as an `<a />` tag. |
icon | boolean | false | Renders the button as a container for an Icon |
iconLabel | boolean | false | Renders the button as a container for an IconLabel |
inline | boolean | false | Renders the component inline |
isLoading | boolean | false | Displays a spinning loading icon in place of the button text and disables the button |
secondary | boolean | false | Renders the secondary variant |
tertiary | boolean | false | Renders the tertiary variant |
to | RouteLocationRaw | undefined | The `to` prop for vue-router's `RouterLink` component. If defined, the button will render as a `<router-link />`. |
Slots
Name | Description |
---|---|
default | default |
Events
None