Button
Component Button
. Check the console for more info.
html
<Card>
<Button text="Button" @click="log" />
</Card>
Props
icon
icon &iconVariant
icon variant, in case you have included moreFont Awesome
variants.Vuersatile Components
only comes withsolid
bundled. (Defaultsolid
), (solid
,regular
,light
,thin
,duotone
,brands
).
html
<Card>
<Button text="Button" icon="rocket-launch" iconVariant="regular" @click="log" />
</Card>
type
button type. (Defaultprimary
), (primary
,secondary
,secondary-transparent
,tertiary
,tertiary-transparent
,approve
,reject
).
html
<Card>
<Button text="Button" type="reject" @click="log" />
</Card>
size
button size. (Defaultm
), (xs
,s
,m
,l
).
html
<Card>
<Button text="Button" size="l" @click="log" />
</Card>
disabled
. (Defaultfalse
).
html
<Card>
<Button text="Button" disabled @click="log" />
</Card>
loading
. (Defaultfalse
).
html
<Card>
<Button text="Button" loading @click="log" />
</Card>
button
type of button. (Defaultbutton
), (button
,submit
,reset
).