Dismissible Alerts
Alerts with a close button so users can clear a notice once read. Use for cookie banners, promotions, and warnings that should not stay forever.
Alerts with a close button so users can clear a notice once read. Use for cookie banners, promotions, and warnings that should not stay forever.
Search blocks by description or jump to a page.
Dismissible Alerts is a stacked set of five notices, each carrying a title, a short description, and an X button anchored to the top right corner. The five variants are default, destructive, success, warning, and info. Each has a matching icon and color treatment so the tone is clear at a glance. When a user closes an alert it disappears from the stack, and a Reset Alerts button appears below so all five can be restored in one click.
Every alert is independent. You can keep only the variants your product needs, swap the titles and descriptions freely, and remove the reset button entirely for a production build where dismissed notices stay gone.
Reach for this block when notices should clear out of the way once a user has acknowledged them. It suits a real estate marketplace well: a success alert confirming a saved search, a warning that a listing price recently dropped, and an info alert about a new open house can each be dismissed as the user works through their dashboard without the page filling up with stale notices.
A natural flow around it on a Components page:
Before
After
Five ready-to-use tonal variants with close buttons that cover the most common notice scenarios. A few ways to adapt the set:
Tip: in production, wire each close handler to persist the dismissed state so the notice stays gone on page reload rather than reappearing every visit.