BlogPlaygroundOne

VBtnToggle API


Props
name
type
default
string
undefined

Sets the color of component when not focused.

string | number | boolean
false

Applies utility border classes to the component. To use it, you need to omit the border- prefix, (for example use border-sm as border="sm"). Find a list of the built-in border classes on the borders page.

string
undefined

Applies specified color to the control - supports utility colors with or without text- prefix (for example success, purple or text-purple) or CSS color (#033 or rgba(255, 0, 0, 0.5)). Find a list of built-in classes on the colors page.

'default' | 'comfortable' | 'compact'
'default'

Adjusts the vertical height used by the component.

'vertical' | 'horizontal'
'horizontal'

Control how children components are arranged - in a row or column.

boolean
false

Puts all children components into a disabled state.

boolean
false

Add dividers between children v-btn components.

string | number
undefined

Designates an elevation applied to the component between 0 and 5. You can find more information on the elevation page.

boolean | 'force'
false

Forces at least one item to always be selected (if available).

number
undefined

Sets a maximum number of selections that can be made.

unknown
undefined

The v-model value of the component. If component supports the multiple prop, this defaults to an empty array.

boolean
false

Allows one to select multiple items.

string | number | boolean
undefined

Round edge buttons.

string
undefined

Configure the active CSS class applied when an item is selected.

string | (new () => any) | FunctionalComponent
'div'

Specify a custom tag used on the root element.

string
undefined

Specify a theme for this component and all of its children.

boolean
false

Removes the component’s border-radius.

'text' | 'flat' | 'elevated' | 'tonal' | 'outlined' | 'plain'
'elevated'

Applies a distinct style to the component.

Events
name
type
[unknown]

Event that is emitted when the component’s model changes.

Slots
{ select: (id: string, value: boolean) => void isSelected: (id: string) => boolean selected: Ref<readonly string[], readonly string[]> prev: () => void next: () => void }

The default Vue slot.

Exposed
() => void
() => void
(id: string, value: boolean) => void

Activates the next button.

Activates the previous button.

Selects a button by index, the second parameter is a boolean to indicate if the button should be selected or not.

SASS Variables
name
default
map.get(settings.$states, 'activated')