VChip API
name | type | default |
|---|---|---|
string
| undefined | |
The class applied to the component when it matches the current route. Find more information about the active-class prop on the vue-router documentation. | ||
string
| undefined | |
Appends a v-avatar component after default content in the append slot. | ||
| string | (string | [string, number])[] | (new () => any) | FunctionalComponent | undefined | |
Creates a v-icon component after default content in the append slot. | ||
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 | ||
boolean
| false | |
Adds remove button and then a chip can be closed. | ||
| string | (string | [string, number])[] | (new () => any) | FunctionalComponent | '$delete' | |
Change the default icon used for close chips. | ||
string
| '$vuetify.close' | |
Text used for aria-label on the close button in close chips. Can also be customized globally in Internationalization. | ||
string
| undefined | |
Applies specified color to the control - supports utility colors with or without | ||
'default' | 'comfortable' | 'compact' | 'default' | |
Adjusts the vertical height used by the component. | ||
boolean
| false | |
Removes the ability to click or target the component. | ||
boolean
| false | |
Makes the chip draggable. | ||
string | number | undefined | |
Designates an elevation applied to the component between 0 and 5. You can find more information on the elevation page. | ||
boolean
| false | |
Exactly match the link. Without this, ‘/’ will match every route. You can find more information about the exact prop on the vue-router documentation. | ||
boolean
| false | |
Displays a selection icon when selected. | ||
| string | (string | [string, number])[] | (new () => any) | FunctionalComponent | '$complete' | |
Change the default icon used for filter chips. | ||
string
| undefined | |
Designates the component as anchor and applies the href attribute. | ||
boolean
| false | |
Applies a medium size border radius. | ||
boolean
| undefined | |
Designates that the component is a link. This is automatic when using the href or to prop. | ||
boolean
| true | |
The v-model value of the component. If component supports the multiple prop, this defaults to an empty array. | ||
boolean
| false | |
Remove | ||
string
| undefined | |
Prepends a v-avatar component in the prepend slot before default content. | ||
| string | (string | [string, number])[] | (new () => any) | FunctionalComponent | undefined | |
Creates a v-icon component in the prepend slot before default content. | ||
boolean
| false | |
Setting replace prop will call | ||
boolean | { class: string; keys: string[] } | true | |
Applies the v-ripple directive. | ||
string | number | boolean | undefined | |
Designates the border-radius applied to the component. This can be 0, xs, sm, true, lg, xl, pill, circle, and shaped. Find more information on available border radius classes on the Border Radius page. | ||
string
| undefined | |
Configure the active CSS class applied when an item is selected. | ||
string | number | 'default' | |
Sets the height, padding and the font size of the component. Accepts only predefined options: x-small, small, default, large, and x-large. | ||
string | (new () => any) | FunctionalComponent | 'span' | |
Specify a custom tag used on the root element. | ||
string | number | boolean | undefined | |
Specify content text for the component. | ||
string
| undefined | |
Specify a theme for this component and all of its children. | ||
boolean
| false | |
Removes any applied border-radius from the component. | ||
string | RouteLocationAsRelativeGeneric | RouteLocationAsPathGeneric | undefined | |
Denotes the target route of the link. You can find more information about the to prop on the vue-router documentation. | ||
any
| undefined | |
The value used when a child of a v-chip-group. | ||
'text' | 'flat' | 'elevated' | 'tonal' | 'outlined' | 'plain' | 'tonal' | |
Applies a distinct style to the component. | ||
name | type | |
|---|---|---|
[MouseEvent | KeyboardEvent] | ||
Emitted when component is clicked, toggles chip if contained in a chip group - Will trigger component to ripple when clicked unless the | ||
[MouseEvent] | ||
Emitted when close icon is clicked. | ||
[{ value: boolean }] | ||
Event that is emitted when an item is selected within a group. | ||
[boolean] | ||
Event that is emitted when the component’s model changes. | ||
Adds an item inside the input and after input content. | ||
Slot for icon used in close prop. | ||
The default Vue slot. | ||
Slot for icon used in filter prop. | ||
The default slot of the v-label or v-field-label component. | ||
Adds an item outside the input and before input content. | ||
name | default |
|---|---|
rgb(var(--v-theme-surface-variant)) | |
( $chip-border-color, $chip-border-style, $chip-border-width ) | |
settings.$border-color-root | |
map.get(settings.$rounded, "pill") | |
settings.$border-style-root | |
thin | |
0 | |
18px | |
rgb(var(--v-theme-on-surface-variant)) | |
("default": 0, "comfortable": -1, "compact": -2) | |
0.3 | |
1 | |
.15s settings.$standard-easing | |
tools.map-deep-get(settings.$typography, "label-large", "size") | |
400 | |
32px | |
calc(18/21) | |
settings.$border-radius-root | |
100% | |
hidden | |
2 + math.div(2, 3) | |
.62 | |
( "height": $chip-height, "font-size": $chip-font-size, ) | |
( $chip-background, $chip-color, $chip-elevation, $chip-plain-opacity, 'v-chip' ) | |
nowrap |