VSlider API
name | type | default |
|---|---|---|
| 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 the input when it is not focused. | ||
boolean
| true | |
Vertically align appendInner, prependInner, clearIcon and label in the center. | ||
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. | ||
'vertical' | 'horizontal' | 'horizontal' | |
Changes the direction of the input. | ||
boolean
| null | |
Removes the ability to click or target the component. | ||
string | number | 1 | |
Designates an elevation applied to the component between 0 and 5. You can find more information on the elevation page. | ||
boolean
| false | |
Puts the input in a manual error state. | ||
string | string[] | [] | |
Puts the input in an error state and passes through custom error messages. Will be combined with any validations that occur from the rules prop. This field will not trigger validation. | ||
boolean
| false | |
Forces a focused state styling on the component. | ||
boolean
| false | |
Makes prepend/append icons full opacity when the input is focused and apply color. | ||
boolean | 'auto' | false | |
Hides hint and validation errors. When set to | ||
boolean
| false | |
Hides spin buttons on the input when type is set to | ||
string
| undefined | |
Displays hint text below the input when focused. Force this always open with the persistent-hint property. | ||
string | boolean | false | |
Sets the color of the prepend/append icons. | ||
string
| undefined | |
Sets the DOM id on the component. | ||
boolean
| null | |
Adds / removes inline padding in inputs details. Useful when trying to align different variants of fields and selection controls. | ||
string
| undefined | |
Sets the text of the v-label or v-field-label component. | ||
string | number | 100 | |
Sets the maximum allowed value. | ||
string | number | 1 | |
Control the maximum number of shown errors from validation. | ||
string | number | undefined | |
Sets the maximum width for the component. | ||
string | string[] | [] | |
Displays a list of messages or a single message if using a string. | ||
string | number | 0 | |
Sets the minimum allowed value. | ||
string | number | undefined | |
Sets the minimum width for the component. | ||
string | number | 0 | |
The v-model value of the component. If component supports the multiple prop, this defaults to an empty array. | ||
string
| undefined | |
Sets the component’s name attribute. | ||
boolean
| false | |
FOR INTERNAL USE ONLY Ignore keyboard events. | ||
boolean
| false | |
Forces hint to always be visible. | ||
| string | (string | [string, number])[] | (new () => any) | FunctionalComponent | undefined | |
Prepends an icon to the component, uses the same syntax as | ||
boolean
| null | |
Puts input in readonly state. | ||
boolean
| false | |
Reverses the slider direction. | ||
boolean
| 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 | boolean | PromiseLike<ValidationResult> | ((value: any) => string | false | true) | ((value: any) => PromiseLike<ValidationResult>) | [string, any, string] )[] | [] | |
Accepts a mixed array of types | ||
boolean | 'always' | false | |
Show track ticks. If | ||
string | number | 0 | |
If greater than 0, sets step interval for ticks. | ||
string
| undefined | |
Specify a theme for this component and all of its children. | ||
string
| undefined | |
Sets the thumb and thumb label color. | ||
boolean | 'hover' | 'always' | undefined | |
Show thumb label. If | ||
string | number | 20 | |
Controls the size of the thumb label. | ||
number[] | Record<number, string> | undefined | |
Show track ticks. If | ||
string | number | 2 | |
Controls the size of ticks | ||
boolean
| false | |
Removes any applied border-radius from the component. | ||
string
| undefined | |
Sets the track’s color | ||
string
| undefined | |
Sets the track’s fill color | ||
string | number | 4 | |
Sets the track’s size (height). | ||
| 'eager' | 'lazy' | 'blur' | 'input' | 'submit' | 'invalid-input' | 'blur lazy' | 'input lazy' | 'submit lazy' | 'invalid-input lazy' | 'blur eager' | 'input eager' | 'submit eager' | 'invalid-input eager' | 'lazy blur' | 'lazy input' | 'lazy submit' | 'lazy invalid-input' | 'eager blur' | 'eager input' | 'eager submit' | 'eager invalid-input' | undefined | |
Change what type of event triggers validation to run. | ||
any
| undefined | |
The value used when applying validation rules. | ||
string | number | undefined | |
Sets the width for the component. | ||
name | type | |
|---|---|---|
[MouseEvent] | ||
Emitted when appended icon is clicked. | ||
[MouseEvent] | ||
Emitted when prepended icon is clicked. | ||
[number] | ||
Slider value emitted at the end of slider movement. | ||
[number] | ||
Slider value emitted at start of slider movement. | ||
[boolean] | ||
Event that is emitted when the component’s focus state changes. | ||
[number] | ||
Event that is emitted when the component’s model changes. | ||
Adds an item inside the input and after input content. | ||
The default Vue slot. | ||
Slot for custom input details to modifying the display of messages. | ||
The default slot of the v-label or v-field-label component. | ||
Slot used to customize the message content. | ||
Adds an item outside the input and before input content. | ||
Slot for the thumb label. | ||
Slot for the tick label. | ||
An array of error messages that were set by the | ||
Boolean indicating if the input is valid. | ||
Resets the input value. | ||
Resets validation of the input without modifying its value. | ||
Validates the input’s value. | ||
name | default |
|---|---|
8px | |
32px | |
8px | |
12px | |
12px | |
0.4 | |
50% | |
var(--v-focus-opacity) | |
24px | |
var(--v-hover-opacity) | |
4px | |
tools.map-deep-get(settings.$typography, 'label-small', 'size') | |
25px | |
35px | |
calc(var(--v-slider-thumb-size) / 2) | |
6px | |
.2s settings.$accelerated-easing | |
6px | |
var(--v-pressed-opacity) | |
42px | |
rgb(var(--v-theme-surface-light)) | |
2px | |
12px | |
8px | |
calc(var(--v-slider-track-size) + #{$slider-track-active-size-offset}) | |
2px | |
6px | |
.3s cubic-bezier(0.25, 0.8, 0.5, 1) | |
12px | |
12px | |
300px |