Alert Bar

stable

Slim, edge-to-edge alert with a label, message, and optional link. Drop it into any page's sections list — five tone variants for different intents.

Live Preview
UpdateRegistration for the 2026–2027 season closes on August 31.
Register now
tsx
<AlertBar
/>
Controls
tone

Palette variant — pick by intent (info / warning / success / danger / neutral).

label

Short caps tag at the left. Blank to hide.

text
linkLabel
linkHref
linkNewWindow
false
Variants

All five tones

tone="info"
INFOThis is a info alert. Register for the 2026–2027 season before it closes.
Register now
tone="warning"
WARNINGThis is a warning alert. Register for the 2026–2027 season before it closes.
Register now
tone="success"
SUCCESSThis is a success alert. Register for the 2026–2027 season before it closes.
Register now
tone="danger"
DANGERThis is a danger alert. Register for the 2026–2027 season before it closes.
Register now
tone="neutral"
NEUTRALThis is a neutral alert. Register for the 2026–2027 season before it closes.
Register now
Minimal

Just a message

No label, no link
Field 3 at Matthews Sportsplex is closed for maintenance this weekend.
Props
PropTypeDefaultDescription
tone"info" | "warning" | "success" | "danger" | "neutral""info"Palette variant.
labelstringOptional caps tag at the left (e.g. "Update", "New").
textstringThe alert copy. Required.
linkLabelstringRight-side link text. Omit to hide the link entirely.
linkHrefstringLink destination. Required whenever linkLabel is set.
linkNewWindowbooleanfalseOpen the link in a new browser tab.