BaseInputFileHeadless

Avatar upload

Use the Headless file input component to create your own avatar upload component. It works the same as a regular file input, but you can style it however you want. Below is an example of an avatar upload component.

Upload preview
Show code

File upload

Use the Headless file input component to create your own file upload component. It works the same as a regular file input, but you can style it however you want. Below is an example of a file upload component.

Drop files to upload

Or
Show code
v-model
The model value of the file input.
Show example
id
The form input identifier.
Show example
filter-file-dropped
Allows to filter files when dropped.
Show example
#default
Show example
el
The underlying HTMLInputElement element.
Show example
files
The model value of the file input.
Show example
open
Opens the native file input selector.
Show example
remove
Removes a file from the input.
Show example
preview
Returns the preview DataURL of a file.
Show example
drop
Handles the drop event.
Show example