

Every state


default


hover


focus


running


done


error


in-form
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| label | string | "Upload files" | The action at rest. |
| runningLabel | string | "Uploading…" | Shown before the percentage while running. |
| doneLabel | string | "Uploaded" | Shown and announced when the task resolves. |
| errorLabel | string | "Upload failed, retry" | Shown when the task rejects; a click retries. |
| startedMessage | string | "Upload started" | Announced when the task starts. |
| errorMessage | string | – | Announced when the task rejects. |
| icon | LucideIcon | Upload | Icon before the label. |
| doneMs | number | 3000 | How long the done state shows, in milliseconds. |
| run | (onProgress: (p: number) => void) => Promise<unknown> | – | The task; reports progress from 0 to 1. Defaults to a fake three-second upload. |
| state | "idle" | "running" | "done" | "error" | – | Fixed state (previews). |
| progress | number | – | Fixed progress from 0 to 1 (previews). |
| className | string | – | Extra classes on the button. |
More buttons
All 14button-07 is in UI ProGet UI Pro, €199


