VField API
name | type | default |
|---|---|---|
boolean
| false | |
Controls the active state of the item. This is typically used to highlight the component. | ||
| string | (string | [string, number])[] | (new () => any) | FunctionalComponent | undefined | |
Creates a v-icon component in the append-inner slot. | ||
string
| undefined | |
Sets the color of the input when it is not focused. | ||
string
| undefined | |
Applies specified color to the control’s background. Used on components that also support the color prop. - supports utility colors with or without | ||
boolean
| undefined | |
Vertically align appendInner, prependInner, clearIcon and label in the center. | ||
boolean
| false | |
Allows for the component to be cleared. | ||
| string | (string | [string, number])[] | (new () => any) | FunctionalComponent | '$clear' | |
The icon used when the clearable prop is set to true. | ||
string
| undefined | |
Applies specified color to the control - supports utility colors with or without | ||
boolean
| false | |
Controls whether the field generates an | ||
boolean
| false | |
Manually apply the dirty state styling. | ||
boolean
| null | |
Removes the ability to click or target the input. | ||
boolean
| false | |
Puts the input in a manual error state. | ||
boolean
| false | |
Removes box shadow when using a variant with elevation. | ||
boolean
| false | |
Forces a focused state styling on the component. | ||
boolean
| false | |
Makes prepend/append icons full opacity when the field is focused and apply color. | ||
string | boolean | false | |
Sets the color of the prepend/append icons. | ||
string
| undefined | |
Sets the DOM id on the component. | ||
string
| undefined | |
Sets the text of the v-label or v-field-label component. | ||
string
| undefined | |
Sets the DOM id on the inner label element. Useful for associating the label with custom input elements. | ||
string | boolean | false | |
Displays linear progress bar. Can either be a String which specifies which color is applied to the progress bar (any material color or theme color - primary, secondary, success, info, warning, error) or a Boolean which uses the component color (set by color prop - if it’s supported by the component) or the primary color. | ||
unknown
| undefined | |
The v-model value of the component. If component supports the multiple prop, this defaults to an empty array. | ||
boolean
| false | |
Always show the clearable icon when the input is dirty (By default it only shows on hover). | ||
| string | (string | [string, number])[] | (new () => any) | FunctionalComponent | undefined | |
Creates a v-icon component in the prepend-inner slot. | ||
boolean
| false | |
Reverses the orientation. | ||
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. | ||
boolean
| false | |
Label does not move on focus/dirty. | ||
string
| undefined | |
Specify a theme for this component and all of its children. | ||
boolean
| false | |
Removes any applied border-radius from the component. | ||
| 'outlined' | 'plain' | 'filled' | 'underlined' | 'solo' | 'solo-inverted' | 'solo-filled' | 'filled' | |
Applies a distinct style to the component. | ||
name | type | |
|---|---|---|
[MouseEvent] | ||
Emitted when appended inner icon is clicked. | ||
[MouseEvent] | ||
Emitted when clearable icon clicked. | ||
[MouseEvent] | ||
Emitted when prepended inner icon is clicked. | ||
[boolean] | ||
Emitted when the input is focused or blurred | ||
[unknown] | ||
Event that is emitted when the component’s model changes. | ||
Slot that is appended to the input. | ||
Slot for custom clear icon (displayed when the clearable prop is equal to true). | ||
The default Vue slot. | ||
The default slot of the v-label or v-field-label component. | ||
Slot for custom loader (displayed when loading prop is equal to true). | ||
Slot that is prepended to the input. | ||
Reference to the control element of the field. | ||
The color of the icon. | ||
name | default |
|---|---|
settings.$border-radius-root | |
1px | |
24px | |
4px | |
.15s opacity, .15s width settings.$standard-easing | |
tools.theme-color('on-surface', var(--v-medium-emphasis-opacity)) | |
6px | |
12px | |
tools.theme-color('on-surface', var(--v-idle-opacity)) | |
56px | |
4px | |
16px | |
16px | |
8px | |
rgb(var(--v-theme-surface)) | |
tools.theme-color('on-surface', var(--v-high-emphasis-opacity)) | |
1 | |
tools.theme-color('on-surface', var(--v-high-emphasis-opacity)) | |
rgb(var(--v-theme-on-surface-variant)) | |
48px | |
2px | |
tools.theme-color('on-surface', var(--v-disabled-opacity)) | |
rgb(var(--v-theme-error)) | |
2px | |
16px | |
2px | |
#{max( var(--v-input-control-height, $input-control-height), calc($input-font-size * $input-line-height + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom)) )} | |
var(--v-high-emphasis-opacity) | |
var(--v-field-padding-bottom, $field-control-padding-bottom) | |
calc(var(--v-field-padding-top, $field-control-padding-top) + var(--v-input-padding-top, 0px)) | |
8px | |
.75 | |
.009375em | |
100% | |
.38 | |
0.04 | |
rgb(var(--v-theme-surface-variant)) | |
map.get(settings.$rounded, 'xl') | |
250ms settings.$standard-easing | |
.15s settings.$standard-easing | |
4px |