Primitive

Dialog

Modal dialog. Native <dialog>, so it inherits browser focus trap and ESC behaviour.

Preview

Delete secret?
This cannot be undone.

Import

ts
import { Dialog } from '@gautham/design-system/primitives'

Usage

tsx
<Dialog open={open} onClose={() => setOpen(false)} title="Delete secret?">
  This cannot be undone.
</Dialog>