Dialog

A modal for decisions that need an answer.

Installation

Examples

Default

Use one when the app can't go on without an answer, such as where to export. Its Sections stack without a line, and the last of several, its buttons, sits 16px below the rest. DialogClose closes it, drawn as the Button it renders.

demo.tsx

Alert

alert asks before what can't be undone: a click outside doesn't close it.

alert.tsx

Anatomy

Each part's data-slot, which a theme styles, is beside it.