File Input
File Input is used to upload files from the user's device.
Installation
npx jsx-daisyui add file-inputDefault
file-input-default
Sizes
file-input-sizes
Colors
file-input-colors
Ghost
file-input-ghost
Disabled
file-input-disabled
With fieldset
file-input-fieldset
Props
FileInput
| Prop | Type | Default | Description |
|---|---|---|---|
color | 'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | - | The color variant of the file input. |
variant | 'ghost' | - | Applies ghost styling. |
size | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'md' | The size of the file input. |