Dialog
stableModal dialog with Radix focus management and close on escape
import { Dialog } from "@nodus/design-system"Loading demo…
Props
| Prop | Type | Default | Description |
|---|---|---|---|
openreq | boolean | — | Controlled open state |
onClosereq | () => void | — | Called when dialog should close |
title | string | — | Dialog header title |
size | "sm" | "md" | "lg" | "md" | Dialog width |
openrequiredType
booleanDefault —Controlled open state
onCloserequiredType
() => voidDefault —Called when dialog should close
titleType
stringDefault —Dialog header title
sizeType
"sm" | "md" | "lg"Default "md"Dialog width
MobileTouch Target
Renders full-screen on mobile (<640px) by default. Close button must be ≥44px. Scrollable content uses overflow-y-auto with max-height.
Design Rationale
This component was designed to express:
Explore Related
Was this helpful?