marclayuiv0.4.0
Components

Alert

Raised clay panels for feedback messages, each with its own inset icon well. Four tones cover success, danger, warning and info.

tsx
import { Alert } from "marclayui";

Variants

Dismissible

PropTypeDefaultDescription
variant"success" | "danger" | "warning" | "info""info"Icon glyph and accent color.
titleReact.ReactNode—Bold lead line.
iconReact.ReactNode—Override the default glyph (✓ ✕ ! i).
onClose() => void—When provided, shows a ✕ button.
…restHTMLAttributes<HTMLDivElement>—Standard div props; role=alert is set for you.