Skip to content
Warning with action, light
Light
Warning with action, dark
Dark

Every state

  • Warning with action, default, light
    Warning with action, default, dark

    default

  • Warning with action, other-fix, light
    Warning with action, other-fix, dark

    other-fix

  • Warning with action, loading, light
    Warning with action, loading, dark

    loading

  • Warning with action, done, light
    Warning with action, done, dark

    done

  • Warning with action, hover, light
    Warning with action, hover, dark

    hover

  • Warning with action, focus, light
    Warning with action, focus, dark

    focus

Props

PropTypeDefaultWhat it does
idstring"warning-action"unique on the page; the heading id hangs off it.
titlestring"Verify your email address"Title.
messagestring"We can't send order updates to sam@example.com until you confirm it's yours."what is wrong and what it blocks, in one or two sentences.
actionLabelstring"Verify email"the one button that fixes the cause, e.g. "Verify email" or "Update card".
pendingLabelstring"Sending link"the button text while the fix runs.
doneTitlestring"Verification link sent"the title once the fix is done; it is also announced.
doneMessagestring"Open the email we sent to sam@example.com and click the link. It works for 24 hours."Done message.
defaultStatusNoticeWarningActionStatus"idle"where it starts; "pending" and "done" show the fix running or finished.
onFix() => Promise<void>–runs the fix; the notice shows "pending" until it resolves and "done" after. The default waits 1.5 s.
classNamestring–Class name.

More notices

All 10
notice-10 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