Dialog
Accessible modal dialog rendered in a portal with backdrop blur, body scroll lock, Escape-key handling, and a Rekodo header strip.
Interactive Dialog
Portal-rendered modal with backdrop blur, Escape-key close, and Shimokita technical header.
dialog-example.tsx
Size
Quick Import
Example.tsxtsx
1import { Dialog } from "@rekodo/react";2
3export function Example({ open, onOpenChange }) {4 return (5 <Dialog open={open} onOpenChange={onOpenChange} title="Record Info">6 Modal body content7 </Dialog>8 );9}API Reference
Props accepted by this component.
| Prop | Type | Default | Description |
|---|---|---|---|
| open | boolean | required | Controls whether the dialog is visible. |
| onOpenChange | (open: boolean) => void | required | Called when closed via backdrop, close button, or Escape. |
| size | "sm" | "default" | "lg" | "xl" | "default" | Maximum width of the dialog panel. |
| title / description | string | undefined | Technical header title and optional lead description. |
| footer | ReactNode | undefined | Action buttons rendered in the footer bar. |
| closeOnOverlayClick / closeOnEsc | boolean | true | Controls dismissal interactions. |