Component
FileInput
A file picker in the system's input clothes — Input cannot be `type="file"`.
import { FileInput } from '@loidolt/theme-svelte';
Example
Notes
onFilesfires only when at least one file is chosen;onchangestill forwards.
Props
Generated from the component source, so it cannot drift from the implementation.
| Prop | Type | Default | Notes |
|---|---|---|---|
accept | string | — | |
boxed | boolean | false | Draws the full box instead of the default underline, like Input. |
class | string | — | |
disabled | boolean | false | |
multiple | boolean | false | |
onFiles | (files: FileList) => void | — | Fired when the user picks at least one file. |
ref bindable | HTMLInputElement | null | null |
Plus the attributes of Omit<HTMLInputAttributes, 'type' | 'value' | 'files' | 'class'>, forwarded to the root element.