Input

A versatile input component that supports various input types, validation, and customization options. It includes features like character limits, error messages, and custom slots for additional content.

0/32

Props

NameDefaultType
typetexttext password color date email number range search tel time url file
Type of input field
labelstring
Label text for the input
hintstring
Helper text displayed below the input
limitnumber string
Maximum number of characters allowed
expandfalseboolean
Makes the input expand to full width
placeholderstring
Placeholder text when input is empty
requiredfalseboolean
Makes the input required
modelValue''string number
Value of the input (for v-model)
readonlyfalseboolean
Makes the input readonly
focusfalseboolean
Focuses the input when mounted
errors[]string[]
Array of error messages to display
acceptstring
File types to accept (for file inputs)
multiplefalseboolean
Allows multiple file selection (for file inputs)
minnumber
Minimum value (for number inputs)
maxnumber
Maximum value (for number inputs)
disabledfalseboolean
Disables the input

Events

NamePayloadDescription
update:modelValuestring numberEmitted when the input value changes

Slots

NameAcceptsDescription
beforeanyContent to be displayed before any of the input content
startanyContent to be displayed at the start of the input
endanyContent to be displayed at the end of the input
afteranyContent to be displayed after the all the input content

Exposes

NameTypeDescription
focusmethodFocuses the input element