Alert title
An alert with no icon and no variant.
Display
ShortcutsAlt+Shift+key
Primitives · 6 of 16
packages/ui/src/astro/ui/alert.astro4 stories
default<Alert>
<h3>Alert title</h3><p>An alert with no icon and no variant.</p>
</Alert>An alert with no icon and no variant.
success<Alert variant="success" icon="lucide:badge-check">
<h3>Success alert</h3><p>The action completed successfully.</p>
</Alert>The action completed successfully.
warning<Alert variant="warning" icon="lucide:alert-triangle">
<h3>Warning alert</h3><p>Something might need your attention.</p>
</Alert>Something might need your attention.
destructive<Alert variant="destructive" icon="lucide:alert-circle" live="assertive">
<h3>Destructive alert</h3><p>This action could have serious consequences.</p>
</Alert>This action could have serious consequences.