Alert

A short, important message. Kobalte's Alert is one element with role="alert", which the Kobalte layer binds, so it needs no class at all.

alpha The class names and states here are stable. The look is not: these styles can change in a minor release, without a major version bump.

ClassDoes what
alertThe message box
alert-errorRecolours it with --error-color

Basic

<div class="alert" role="alert">Your changes have been saved.</div>
<div class="alert alert-error" role="alert">We could not reach the server.</div>

There is no info, success or warning variant yet. The framework derives everything from one --color plus --error-color, and those variants need tokens it does not have.