Skip to content
Loading with progress, light
Light
Loading with progress, dark
Dark

Every state

  • Loading with progress, default, light
    Loading with progress, default, dark

    default

  • Loading with progress, hover, light
    Loading with progress, hover, dark

    hover

  • Loading with progress, focus, light
    Loading with progress, focus, dark

    focus

  • Loading with progress, running, light
    Loading with progress, running, dark

    running

  • Loading with progress, done, light
    Loading with progress, done, dark

    done

  • Loading with progress, error, light
    Loading with progress, error, dark

    error

  • Loading with progress, in-form, light
    Loading with progress, in-form, dark

    in-form

Props

PropTypeDefaultWhat it does
labelstring"Upload files"The action at rest.
runningLabelstring"Uploading…"Shown before the percentage while running.
doneLabelstring"Uploaded"Shown and announced when the task resolves.
errorLabelstring"Upload failed, retry"Shown when the task rejects; a click retries.
startedMessagestring"Upload started"Announced when the task starts.
errorMessagestring–Announced when the task rejects.
iconLucideIconUploadIcon before the label.
doneMsnumber3000How 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).
progressnumber–Fixed progress from 0 to 1 (previews).
classNamestring–Extra classes on the button.

More buttons

All 14
button-07 is in UI ProGet UI Pro, €199

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans