Dialog

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.

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 content
7 </Dialog>
8 );
9}

API Reference

Props accepted by this component.

PropTypeDefaultDescription
openbooleanrequiredControls whether the dialog is visible.
onOpenChange(open: boolean) => voidrequiredCalled when closed via backdrop, close button, or Escape.
size"sm" | "default" | "lg" | "xl""default"Maximum width of the dialog panel.
title / descriptionstringundefinedTechnical header title and optional lead description.
footerReactNodeundefinedAction buttons rendered in the footer bar.
closeOnOverlayClick / closeOnEscbooleantrueControls dismissal interactions.