Buy me a coffee

Dialog

A window on top of the page. Focus stays inside until it closes.

Reka UI Dialog

Installation

npx distill-ui add dialog

It also copies Button, which Dialog uses.

It installs reka-ui if you don't have it yet.

Customizing

Set any of these on the component or on a parent element. See Customizing for how they work.

Custom propertyDefault
--dui-dialog-overlay-bgvar(--dui-color-overlay)
--dui-dialog-max-width28rem
--dui-dialog-paddingvar(--dui-space-6)
--dui-dialog-radiusvar(--dui-radius-xl)
--dui-dialog-bgvar(--dui-color-popover)
--dui-dialog-fgvar(--dui-color-popover-foreground)