File Upload
Select files and show the current upload selection.
Preview
Import
import { FileUpload } from "@sigil-ui/components";Usage
<FileUpload accept="image/*" maxSize={5_000_000} className="w-full max-w-md" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
accept | string | — | Accept configuration. |
multiple | boolean | — | Multiple configuration. |
maxSize | number | — | Max Size configuration. |
disabled | boolean | — | Prevents user interaction when enabled. |
onChange | (files: File[]) => void | — | Called when the value changes. |
Token integration
| CSS Variable | Purpose |
|---|---|
--s-radius-md | Radius md |
--s-border | Border |
--s-background | Background |
--s-duration-fast | Duration fast |
--s-primary | Primary |
--s-surface | Surface |
--s-text-muted | Text muted |
--s-text | Text |