Error Modal
View in FigmaA specialized modal for displaying error, warning, and confirmation dialogs with icon variants.
OverlaysImport
import { ErrorModal } from "@/components/ui"API
| Prop | Type | Default | Description |
|---|---|---|---|
| open | boolean | — | Controls modal visibility. |
| onClose | () => void | — | Callback to close the modal. |
| variant | "error" | "warning" | "default" | "default" | Icon and color variant. |
| title | string | — | Modal heading. |
| description | string | — | Secondary description text. |
| primaryAction | { label: string; onClick: () => void } | — | Primary action button. |
| secondaryAction | { label: string; onClick: () => void } | — | Secondary action button. |