Dialog
A window laid over the page that leaves everything under it inert until it closes: a header with its title and description, what it holds and the footer's buttons.
Usage
Examples
Sizes
size sets the window: sm 384px wide, base 448px (the default), or lg, a large window most of the screen tall, the size a sidebar takes.
Border radius
borderRadius sets the window's corners on the kit's one scale: none, xs 4px, sm 6px, base 8px, lg 12px (the default) or xl 16px; each button opens its own dialog.
Alert
alert makes the dialog a question that waits for an answer: read as an alertdialog, it stays open on a click outside, which closes a dialog by default.
Scrollable
scrollable={false} stops the window scrolling as one, so a bordered DialogHeader and DialogFooter stay in place while the DialogBody between them scrolls; by default everything scrolls together.
Sidebar
sidebar sets a rail of tabs down the side of a large window, each opening a DialogPanel of its own, the rail narrowing to its icons with the button at the start of the header; by default a dialog has no rail.
Group
group on a sidebar's tabs sets them under that name in the rail, the name shown above the first of them; by default a tab has no group.
API Reference
It takes the props of Radix Dialog.Root.