Radius

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.

Default props of all <BaseInputFile> can be set in your .app/app.config.ts.
Show code
v-model
Show example
rounded
The radius of the file input.

@since

2.0.0

@default

'sm'

Show example
size
The size of the input.

@default

'md'

Show example
label
The label to display for the file input.
Show example
id
The form input identifier.
Show example
contrast
The contrast of the input.

@since

2.0.0

@default

'default'

Show example
classes
Optional CSS classes to apply to the wrapper, label, input, text, error, and icon elements.
Show example
icon
The icon to display for the file input.
Show example
placeholder
The placeholder to display for the file input.
Show example
error
An error message or boolean value indicating whether the file input is in an error state.
Show example
text-value
Method to return the text value of the file input.
Show example
loading
Whether the file input is in a loading state.
Show example
color-focus
Whether the color of the file input should change when it is focused.
Show example
#label
Show example
#icon
Show example
el
The underlying HTMLInputElement element.
The underlying HTMLInputElement element.
Show example