Back to Vuetify

Button toggles

packages/docs/src/pages/en/components/button-groups.md

4.1.01.7 KB
Original Source

Button toggles

The v-btn-toggle component is a simple wrapper for v-item-group built specifically to work with v-btn.

<PageFeatures />

Usage

Toggle buttons allow you to create a styled group of buttons that can be selected or toggled under a single v-model.

<ExamplesExample file="v-btn-toggle/usage" /> <PromotedEntry />

API

ComponentDescription
v-btn-togglePrimary component
v-btnSub-component used for modifying the v-btn-toggle state
v-btn-groupA stateless version of v-btn-toggle
<ApiInline hide-links />

Examples

Props

Divided

You can add a visual divider between buttons with the divided prop.

<ExamplesExample file="v-btn-toggle/prop-divided" />

Variant

You can switch the button variant by using variant prop on v-btn-toggle.

<ExamplesExample file="v-btn-toggle/prop-variant" />

Mandatory

A v-btn-toggle with the mandatory prop will always have a value.

<ExamplesExample file="v-btn-toggle/prop-mandatory" />

Multiple

A v-btn-toggle with the multiple prop will allow a user to select multiple return values as an array.

<ExamplesExample file="v-btn-toggle/prop-multiple" />

Rounded

You can control the border radius with the rounded prop.

<ExamplesExample file="v-btn-toggle/prop-rounded" />

Misc

<!-- #### Toolbar Easily integrate customized button solutions with a `v-toolbar` <ExamplesExample file="v-btn-toggle/misc-toolbar" /> -->

WYSIWYG

Group similar actions and design your own WYSIWYG component.

<ExamplesExample file="v-btn-toggle/misc-wysiwyg" />