ui.alert
Alert
Four semantic tones, an optional title, an icon that picks itself — and a close button.Status messages
Info, success, warning and error each bring their own icon.Scheduled maintenance
Your workspace will be migrated to the new region on Sunday at 02:00 UTC.
All settled
Payment received. Invoice INV-2041 is now marked as paid.
Approaching your limit
You have used 92% of your monthly API quota.
Payment failed
We could not charge the card ending in 4242. Update it to keep your plan active.
Just a message
Without a title, an alert is a single quiet line.Changes are saved automatically as you type.
Two-factor authentication is on for every admin.
This link expires in 24 hours.
Your own icon and tone
icon= takes any Lucide name, or False for none; the neutral colours suit promotions and hints.Better together
Invite three teammates this week and get a month of Pro.
Keyboard shortcuts are available — press ? to see them.
Archived projects are read-only. Restore one to edit it.
Inside a form
Next to the fields it concerns, where the user is already looking.Billing details
Used on every invoice we send you.The card on file expires in 12 days.
Dismissible
The × closes the alert in the browser. on_close takes a client expression, as here, or a Python function when the server must remember the choice.Tip
Drag a card onto another column to change its status.