Documentation Index
Fetch the complete documentation index at: https://mintlify.com/vuetifyjs/vuetify/llms.txt
Use this file to discover all available pages before exploring further.
VBtnToggle
TheVBtnToggle component is a wrapper around VBtnGroup that provides selection state management. It allows users to select one or multiple buttons with visual feedback.
Basic Usage
Multiple Selection
Variants
- Outlined
- Flat
- Elevated
Mandatory Selection
Props
The currently selected value(s). Array when
multiple is trueAllow multiple selections
At least one button must be selected. Use
'force' to always enforceMaximum number of selections allowed (when
multiple is true)Custom class applied to selected buttons
Disables all buttons in the toggle group
Visual style variant. Options:
elevated, flat, outlined, text, tonal, plainColor applied to all buttons
Base color for unselected buttons
Layout direction
Adds dividers between buttons
Adjusts vertical spacing. Options:
default, comfortable, compactElevation level (0-24)
Border radius. Options:
0, xs, sm, md, lg, xl, pill, circle, or numberAdds border. Can specify width or side
HTML tag to use for root element
Theme to apply
Events
Emitted when selection changesPayload: The new selected value(s)
Slots
Button toggle content. Receives slot props:
isSelected(value)- Function to check if value is selectedselect(value)- Function to select a valueselected- Currently selected value(s)next()- Select next buttonprev()- Select previous button
Examples
Icon Toggle Group
Text Formatting
With Custom Selection Class
Using Slot Props
Notes
- When using
mandatory, at least one button must always be selected - The
multipleprop allows selecting multiple buttons simultaneously - Each button should have a unique
valueprop for proper selection tracking - Inherits all styling props from
VBtnGroup