Input File
The Input File element extends the Input element with the ability to upload files.
Basic use
The sample shows the input-file in its basic state, i.e. as the simplest input for selecting a file.
When to use
Use wje-input-file when the user enters a value, selects options, or performs an action in a form.
When not to use
Don't just use it as a visual decorative element without interaction. In this case, give priority to the presentation components.
Accessibility
Always link the component to the description (label/aria-label), keep keyboard control, and display a clear message on validation errors.
Recommended practices
- Keep validation rules and error states consistent across the entire form.
- For asynchronous operations, display the load status or disabled status.
- For complex forms, prefer smaller sections and immediate feedback.
Attributes and properties
Pre tento komponent nie sú dostupné žiadne vlastnosti.
Events
| Názov | Popis |
|---|---|
wje-input-file:change | Vyvolá sa pri zmene hodnoty komponentu. |
Methods
Pre tento komponent nie sú dostupné žiadne verejné metódy.
CSS shadow parts
| Názov | Popis |
|---|---|
native | Štýluje koreňovú shadow časť komponentu. |
input | Štýluje shadow časť input. |
file-input | Štýluje shadow časť file-input. |
CSS custom variables
Pre tento komponent nie sú dostupné žiadne vlastné CSS vlastnosti.
Slots
Pre tento komponent nie sú dostupné žiadne sloty.