notice block
A banner styled by tone (info / success / warning / error) with an icon, optional title, and markdown body. Use it for announcements with urgency — the urgency styling is the whole point.
When to use it
- Transient announcements: “Responses delayed today — high volume”, “Maintenance window tonight 02:00 UTC”.
- Launch / change announcements: “New: schedule conversations for follow-up”.
- Service-impacting errors: “Payment processor outage — checkout disabled”.
notice is for things that grab attention.
Shape
Tone usage
info(blue) — general notes, calm tone.success(green) — celebrations, launches, “we just shipped X”.warning(amber) — degraded service, wait-times, “expect delays”.error(red) — outages, blocked features, payment failures. Use sparingly so it retains weight.
Tips
- Remove the block (don’t just dismiss it) once the announcement is no longer relevant. Dismissals are session-scoped — a returning visitor still sees it.
- Title is optional but recommended for
warning/errorso the urgency is clear at a glance. - Don’t stack multiple
error-tone notices; the visitor can only act on so much at once. If you have multiple, preferwarningor write a single combined notice. - Schema enforcement:
bodymust be non-empty. A write that supplies only a title is rejected.