Skip to main content

Button

The Button component replaces the standard html button with a material design theme and a multitude of options. Any color helper class can be used to alter the background or text color.

info

For more details about Vuetify’s usage of Button component, click Button page.
For more prop explanations, click Vuetify Button API page.

Props

AttributeDescriptionTypeDefault
absoluteApplies position: position relative to the component.booleanfalse
activeClassConfigure the active CSS class applied.string
appendIconIcon can be added.booleanfalse
blockExpands the button to 100% of available space.booleanfalse
classProp that determines the class to add to the Button.stringundefined
depressedRemoves the button box shadow.booleanfalse
disabledRemoves the ability to click or target the component.booleanfalse
fabbutton will become round.booleanfalse
fixedApplies position: fixed to the component.booleanfalse
hrefDesignates the component as anchor and applies the href attribute.string | objectundefined
iconDesignates the button as icon. Button will become round and applies the text prop.booleanfalse
inputValueControls the button’s active state.anyundefined
linkDesignates that the component is a link. This is automatic when using the href or to prop.booleanfalse
loadingAdds a loading icon animation.booleanfalse
prependInnerIconPrepends an icon inside the component’s input, uses the same syntax as v-icon.stringundefined
retainFocusOnClickDon’t blur on click.booleanfalse
replaceProp that determines the class to add to the Button.booleanfalse
rightAligns the component towards the right.booleanfalse
rippleApplies the 'v-ripple' directive.boolean | objectundefined
tagSpecify a custom tag used on the root element.string'button'
textMakes the background transparent. When using the color prop, the color will be applied to the button text instead of the background.booleanfalse
toDenotes the target route of the link.string | objectundefined
typeSet the button’s type attribute.string'button'
tabIndexIt determines the order of switching from one component to another with the tab key.string
visibleVisibility of Button component.booleantrue

Events

AttributeDescription
clickTrigger when you click marker on the button
mouseoverTrigger when mouse over the button
mouseleaveTrigger when mouse leave the button

Samples Component

image

Samples Qjson

button