Skip to content

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

NameTypeDefaultDescription
color"blue" | "red"undefinedRenders a color variant
disabledbooleanundefinedDisables the button
hrefstring '' Button link. If defined, the button will render as an `<a />` tag.
iconbooleanfalseRenders the button as a container for an Icon
iconLabelbooleanfalseRenders the button as a container for an IconLabel
inlinebooleanfalseRenders the component inline
isLoadingbooleanfalseDisplays a spinning loading icon in place of the button text and disables the button
secondarybooleanfalseRenders the secondary variant
tertiarybooleanfalseRenders the tertiary variant
toRouteLocationRawundefinedThe `to` prop for vue-router's `RouterLink` component. If defined, the button will render as a `<router-link />`.

Slots

NameDescription
defaultdefault

Events

None