marclayuiv0.4.0
Components

Modal

A portaled dialog on a blurred backdrop. Focuses itself on open, closes on Escape or backdrop click, and locks page scroll while visible.

tsx
import { Modal } from "marclayui";

Dialog with footer

Sizes

sm · md (default) · lg — all capped at 92vw on small screens.
PropTypeDefaultDescription
openboolean—Controls visibility.
onClose() => void—Called by Escape, the ✕ button, or the backdrop.
titleReact.ReactNode—Header text; the panel is aria-labelledby it.
footerReact.ReactNode—Right-aligned action row.
size"sm" | "md" | "lg""md"Max width of the panel.
closeOnBackdrop / closeOnEscbooleantrueToggle the dismissal behaviors.