Docs
File-upload
File Upload
Used to select and upload files or drag and drop files.
Drag and Drop files here or click to select
Usage
Example Code
1import { FileUpload } from "inc-design-system/upload"Example Code
1<FileUpload />Props
File Upload
| Prop | Type | Description | Default |
|---|---|---|---|
| className | string | Additional CSS classes to apply to the file upload area. | - |
| width | "full" | "half" | Sets the width of the file upload component. Options are full for full width and half for half width. Default is full. | "full" |
| transparent | boolean | Determines whether the background of the upload area is transparent. | false |
| onFileChange | (files: File[]) => void | A function that is called when the user selects files. It receives an array of File objects as its argument. | - |