Dialog
Modal blocking surface for confirmations / short flows.
packages/ui/src/components/ui/dialog.tsx
Import
Subpath export:
@marktiderman/genesis-uiimport { Dialog } from "@marktiderman/genesis-ui";Exports
Re-exported from
@marktiderman/genesis-ui.- Dialog
- DialogTrigger
- DialogContent
- DialogHeader
- DialogTitle
- DialogDescription
- DialogFooter
Components
Auto-generated from TypeScript source via
react-docgen-typescript.Dialog
No declared props.
DialogPortal
No declared props.
DialogOverlay
| Prop | Type | Default | Description |
|---|---|---|---|
| asChild | boolean | — |
DialogClose
| Prop | Type | Default | Description |
|---|---|---|---|
| asChild | boolean | — |
DialogTrigger
| Prop | Type | Default | Description |
|---|---|---|---|
| asChild | boolean | — |
DialogContent
| Prop | Type | Default | Description |
|---|---|---|---|
| asChild | boolean | — | |
| mobileLayout | enum | center | How the dialog sits on a phone. Default `center`, the centred box; `sheet` and `fullscreen` are opt-in. See {@link DialogMobileLayout}. |
| overlayClassName | string | — | Classes for the backdrop rendered behind the content, merged after the defaults, e.g. `z-[60]` to lift it above a side panel that sits at `z-50`. Raise the content's own `className` to match. |
| showCloseButton | boolean | true |
DialogHeader
No declared props.
DialogFooter
No declared props.
DialogTitle
| Prop | Type | Default | Description |
|---|---|---|---|
| asChild | boolean | — |
DialogDescription
| Prop | Type | Default | Description |
|---|---|---|---|
| asChild | boolean | — |