Components
BaseFileInput
A file picker for one or several files, with chips and a hint for formats and sizes.
components/ui/inputs/BaseFileInput.vue
View in the demo
Example
API
It also accepts every prop, slot and event of v-file-input, which it passes through.
Props
Name | Type | Default | Description |
|---|---|---|---|
label | string | — | The visible label above the field, linked to it with for and aria-labelledby. |
input-id | string | — | A fixed id for the input. One is generated with useId() when you leave it out. |
optional | boolean | — | Adds “(optional)” after the label. Never mark required fields. |
info | BaseInputInfo | — | A help popover next to the label: a text or a list of { title, text }. |
Accessibility
The label is always visible and linked to the input. Error messages are announced through aria-describedby and the field gets aria-invalid. Set type, inputmode and autocomplete so phones show the right keyboard and browsers can autofill.