Modal
A dialog that blocks the page until the person decides.
import { Modal } from '@stanvision/atomus-react';
<Modal open={open} onClose={() => setOpen(false)} type="destructive" featuredIcon title="Delete project?" description="You can’t undo this." actions={<><Button hierarchy="outline">Cancel</Button><Button hierarchy="primary">Delete</Button></>}/>A dialog that blocks the page until the person decides. Built on the native <dialog>: focus moves in, Esc and the backdrop close it, the page behind is inert.
Provide
Section titled “Provide”open+onClose;titleanddescription;childrenfor the Content slot.actions— buttons, the primary last;featuredIcon(trueor an icon);closeButton(default on).sizesm400 ·md544 ·lg720;typedestructivetints the icon red.
- Don’t open a modal on page load or stack two.
- Don’t use for long forms — use a Drawer or a page.
In Figma
Section titled “In Figma”Properties, variants and anatomy for the Figma component are on the Figma reference page. Prop names in React match the Figma property names.