New
Beta
Active
Expiring
Alert
Message with icon, title and text to draw attention.
New feature
Dark mode is now in your account settings.
BackgroundGridAccent
Corners
SharpRound
Shadow
NoneStrong
Motion
NoneBounce
<style>
.ux-alert{display:flex;gap:12px;width:100%;max-width:300px;padding:14px 16px;border-radius:calc(14px * var(--r,1));border:1px solid var(--line,#cfd2da);background:var(--bg,#fff);color:var(--fg,#14151a);font:14px/1.4 system-ui}
.ux-alert svg{flex:none;margin-top:1px;color:var(--accent,#cc4a26)}
.ux-alert strong{font-size:15px}
.ux-alert p{margin:2px 0 0;color:var(--muted,#6b6f7b)}
</style>
<div class="ux-alert" role="status">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="9"/><path d="M12 8v5M12 16.5v.01"/></svg>
<div><strong>New feature</strong><p>Dark mode is now in your account settings.</p></div>
</div>When to use it
Use this to tell someone what just happened or what is currently happening — a result, a status, or a state that changes over time.
Accessibility
Check that it reaches every state with the keyboard alone before you ship it, and keep the focus ring instead of removing it for looks. It has no JavaScript dependency, so it keeps working if a script fails to load, and it is built on native form controls or semantics rather than divs pretending to be one. Colors are read from CSS custom properties, so they follow your light or dark theme and you can raise contrast globally without touching this component.