Skip to content

BaseButton

Props

NameDescriptionTypeDefault
variantVariant for the button'primary', 'secondary', 'destructive', 'outline', 'ghost' (optional)'primary'
iconOnlyContent is only iconboolean (optional)false
toTarget if button works as a linkstring (optional)

Slots

NameDescriptionBindings
defaultSlot for content

Examples

vue
<BaseButton variant="primary">Button</BaseButton>

<BaseButton variant="ghost" icon-only>x</BaseButton>
<BaseButton variant="primary">Button</BaseButton>

<BaseButton variant="ghost" icon-only>x</BaseButton>

Released under the GNU GPLv3 License.