Skip to content
Progress toast, light
Light
Progress toast, dark
Dark

Every state

  • Progress toast, default, light
    Progress toast, default, dark

    default

  • Progress toast, starting, light
    Progress toast, starting, dark

    starting

  • Progress toast, done, light
    Progress toast, done, dark

    done

  • Progress toast, failed, light
    Progress toast, failed, dark

    failed

  • Progress toast, cancelled, light
    Progress toast, cancelled, dark

    cancelled

  • Progress toast, focus, light
    Progress toast, focus, dark

    focus

Props

PropTypeDefaultWhat it does
idstring"toast-progress"unique on the page; the title and bar ids hang off it.
titlestring"Exporting orders"what is running, e.g. "Exporting orders".
fileNamestring"orders-november.csv"File name.
totalnumber1240how many items the task handles; the meta line counts them.
unitstring"orders"what the items are called, e.g. "orders".
doneTitlestring"Export ready"Done title.
failedTitlestring"Export failed"Failed title.
failedMessagestring"The connection dropped. No file was created."Failed message.
cancelledTitlestring"Export cancelled"Cancelled title.
downloadHrefstring"#download"Download href.
task(report: (value: number) => void, signal: AbortSignal) => Promise<void>simulateExportthe work itself: call report(0–100) as it goes and stop when signal aborts; reject to fail.
onCancel() => void–On cancel.
onDone() => void–On done.
defaultStatusToastProgressStatus"running"where the toast starts; "running" starts the task.
defaultValuenumber0percentage already done when the toast opens.
openboolean–controlled open state; leave it out to let the toast manage itself.
defaultOpenbooleantrueDefault open.
onOpenChange(open: boolean) => void–On open change.
inlinebooleanfalsedraws the toast in place instead of in the fixed bottom-right viewport.
localestring"en-GB"Locale.
classNamestring–Class name.

More toasts

All 7
toast-02 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