File inputs have default styling, showing the file name and a button to select a file. You can change the radius factor of the input with the rounded prop.
Show codeHide code
vue
Name
Type
classesOptional CSS classes to apply to the wrapper, label, input, text, error, and icon elements.
Show exampleHide example
vue
color-focusWhether the color of the file input should change when it is focused.
Show exampleHide example
vue
errorAn error message or boolean value indicating whether the file input is in an error state.
Show exampleHide example
vue
iconThe icon to display for the file input.
Show exampleHide example
vue
idThe form input identifier.
Show exampleHide example
vue
labelThe label to display for the file input.
Show exampleHide example
vue
loadingWhether the file input is in a loading state.
Show exampleHide example
vue
placeholderThe placeholder to display for the file input.
Show exampleHide example
vue
text-valueMethod to return the text value of the file input.
Show exampleHide example
vue
Name
Type
roundedThe radius of the file input.
@since
2.0.0
Show exampleHide example
vue
contrastThe contrast of the input.
@since
2.0.0
Show exampleHide example
vue
i18nTranslation strings.
Show exampleHide example
vue
sizeThe size of the input.
Show exampleHide example
vue
Name
Type
roundedThe radius of the file input.
Show exampleHide example
vue
contrastThe contrast of the input.
Show exampleHide example
vue
i18nTranslation strings.
Show exampleHide example
vue
sizeThe size of the input.
Show exampleHide example
vue
elThe underlying HTMLInputElement element.
Show exampleHide example
vue