Clarx

Alert

A block-level notice component. Expresses the same intent × appearance model as Badge, at paragraph scale.

Alert is Badge at block scale. The same intent and appearance axes apply. You say what the notice is communicating — the component handles the visual treatment.

Intent

<Alert intent="success" title="Deployment complete">Your changes are live.</Alert>
<Alert intent="warning" title="Approaching limit">90% of quota used.</Alert>
<Alert intent="danger" title="Action required">Payment method failed.</Alert>
<Alert intent="info" title="Scheduled maintenance">Downtime Sunday 2–4 AM UTC.</Alert>
<Alert intent="neutral" title="Note">Changes take effect on next login.</Alert>

Appearance

soft (default) is appropriate for contextual notices inline on a page. solid is for critical, blocking alerts that must command attention.

Props

PropTypeDefaultDescription
intentIntent"neutral"What this alert communicates. Drives color.
appearance"soft" | "solid""soft"Visual weight.
titlestringOptional bold title rendered above the body.
childrenReactNodeAlert body content.
classNamestringLayout overrides only.

Source

packages/ui/src/alert.tsx — copy into components/ui/alert.tsx in your project.