Officina UI
Components

Alert

Inline messages in four semantic variants with optional dismiss.

Alert surfaces contextual feedback inline, scoped to a region of the page.

Example

Preview
import { Alert } from '@officina/ui';

<Alert variant="success">Your changes were saved.</Alert>
<Alert variant="danger" dismissible>Payment failed.</Alert>

API

PropTypeDefaultDescription
dismissibleboolean—Show a close button that hides the alert.
variant"info" | "success" | "warning" | "danger" | nullinfo

On this page