FileInput
Overview
The FileInput
component is used to allow users to choose one or more files from their device storage. It's designed to simplify the process of file selection and can be used to upload images and documents.
When to use
- When you need to allow users to upload files.
- When you need to let users select files for further processing or display in the application.
When to consider an alternative
t.b.d.
Component
Default
States
FileInput.Preview
Properties
Default
Property | Type | Required | Default |
---|---|---|---|
utilClassNames | String | false | - |
label | String | false | - |
actions | Node | false | - |
onFilesSelected | Func | false | - |
multiple | Bool | false | - |
error | Bool | false | - |
children | Node | false | - |
FileInput.Preview
Property | Type | Required | Default | Description |
---|---|---|---|---|
file | Shape {
"name": "String",
"type": "String"
} | false | - | |
isLoading | Bool | false | - | |
onEdit | Func | false | - | Renders an IconButton, function will be passed to button |
onDelete | Func | false | - | Renders an IconButton, function will be passed to button |
hasDescription | Func | false | - | Renders an IconButton, function will be passed to button |