Components
Alert
hlmAlert sets role="alert" on its element. It has default and destructive variants.
Heads up
Alerts are plain elements with attributes.
Something went wrong
The destructive variant uses the destructive token.
<div class="flex max-w-md flex-col gap-3">
<div hlmAlert>
<div hlmAlertTitle>Heads up</div>
<p hlmAlertDescription>Alerts are plain elements with attributes.</p>
</div>
<div hlmAlert variant="destructive">
<div hlmAlertTitle>Something went wrong</div>
<p hlmAlertDescription>The destructive variant uses the destructive token.</p>
</div>
</div>There is also an hlmAlertAction part for a trailing action.