Overlays & toasts

Modal, drawer and promise-based confirm dialog systems, plus the toast notification API.

Modal

<Modal size="sm | md | lg | xl" />

Drawer

RTL-aware start / end / bottom sheets.

Confirm dialog

const ok = await confirm({...})

Toasts

toast.success() · toast.error() · toast.promise()

Usage

Every overlay is a controlled component — wire it to any state manager.

import { Modal, Drawer, useConfirm } from "@/core/modals";
import { toast } from "@/core/notifications/toaster";

const confirm = useConfirm();
if (await confirm({ title: "Delete?", variant: "destructive" })) toast.success("Deleted");