Skip to main content

CaButton

A button for click events or links

SASS-path: ./styles/components/atoms/ca-button.scss

Props

NameDescriptionTypeRequiredDefault
hrefSet this if you want to use button as a link. If set to internal link NuxtLink will be used for routing. Using localePath (nuxt-i18n) to return localized URLStringfalse''
disabledUse to disable buttonBooleanfalsefalse
sizeThe size of the button's', 'm', 'l'falsem
typeType of button'default', 'full-width'falsedefault
colorColor of button'primary', 'secondary'falseprimary
loadingSet button in loading stateBooleanfalsefalse
noFunctionSet to true to use button style without it being an actual buttonBooleanfalsefalse

Events

Event NameDescriptionParameters
clicked--

Slots

NameDescriptionDefault Slot Content
defaultButton text / content-

MixIns

MixIn
MixLinkHandler