BlogPlaygroundOne

VOtpInput API


Props
name
type
default
boolean
false

Automatically focuses the first input on page load

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 bg- prefix (for example success, purple or bg-purple) or CSS color (#033 or rgba(255, 0, 0, 0.5)). Find a list of built-in classes on the colors 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.

boolean
null

Removes the ability to click or target the input.

string
undefined

Specifies the dividing character between items.

boolean
false

Puts the input in a manual error state.

boolean
false

Puts all inputs into a focus state when any are focused

boolean
false

Forces a focused state styling on the component.

string | number
undefined

Sets the height for the component.

string
'$vuetify.input.otp'

Sets the text of the v-label or v-field-label component.

string | number
6

The OTP field’s length.

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.

boolean
false

Hides the entered characters with bullets, similar to a password input, but makes it possible to also restrict characters to digits with type="number".

string | number
undefined

Sets the maximum height for the component.

string | number
undefined

Sets the maximum width for the component.

string | number
undefined

Sets the minimum height for the component.

string | number
undefined

Sets the minimum width for the component.

string | number
undefined

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

string
undefined

Sets the input’s placeholder text.

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

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

'number' | 'text' | 'password'
'number'

Supported types: text, password, number.

  | 'outlined'
  | 'plain'
  | 'underlined'
  | 'filled'
  | 'solo'
  | 'solo-inverted'
  | 'solo-filled'
'outlined'

Applies a distinct style to the component.

string | number
undefined

Sets the width for the component.

Events
name
type
[string]

Emitted when the input is filled completely and cursor is blurred.

[boolean]

Emitted when the input is focused or blurred

[string]

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

Slots
never
never

The default Vue slot.

Slot for custom loader (displayed when loading prop is equal to true).

Exposed
boolean
() => void

Returns true if the input is focused.

Reset’s the input model to an empty array

SASS Variables