Dot Dialog
Built on the platform's own <dialog>, so the page behind goes inert, focus is held inside and handed back, and Escape closes it. The page isn't dimmed with a flat grey: a veil of dots comes down over it in blue-noise order, and the panel arrives through a dither dissolve. Closing is quick.
Needs: None. The native <dialog> element and one canvas.
Customize
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| open | boolean | required | Whether it's open. |
| onOpenChange | (open: boolean) => void | required | Called to close it: Escape, the veil, or your own buttons. |
| title | string | required | Its heading, and its name for screen readers. |
| description | ReactNode | – | A line under the title, read out with it. |
| children | ReactNode | – | Anything else: a form, a list. |
| actions | ReactNode | – | Buttons along the foot. The classes mlui-dialog__button and data-primary style them. |
| dismissible | boolean | true | Escape and a click on the veil close it. |
| width | number | 440 | The panel's width in px. |
| className | string | – | Class on the dialog. |
| style | CSSProperties | – | Style on the panel. |