import { Modal, type ModalProps } from './Modal'; import type { ModalSize, Radius } from '../types'; import { useDefaults } from '../runtime'; /** Props for {@link Dialog}. */ export interface DialogProps extends ModalProps { /** * Corner radius, from the `radii` config. * @default config.defaults.radius */ radius?: Radius; } /** * A modal dialog built on the native `` element: focus is trapped, the page behind is inert * and doesn't scroll, and Esc closes it. * * @example * ```tsx * Delete} * title="Delete project?" * description="This can't be undone." * footer={} * /> * ``` */ export function Dialog(props: DialogProps) { const own = useDefaults('Dialog'); return ( ); }