tuil
ReferenceComponentsDialogs, toasts, and overlays

DialogProps

DialogProps component contract.

View rawEdit

Type

export interface DialogProps {
  readonly id?: string;
  readonly open?: boolean;
  readonly defaultOpen?: boolean;
  readonly onOpenChange?: (open: boolean) => void | Promise<void>;
  readonly children?: ReactNode;
}

Members

MemberTypeRequiredDescriptionRelated types
idstring | undefinedNoThe id member uses the string | undefined contract.
openboolean | undefinedNoThe open member uses the boolean | undefined contract.
defaultOpenboolean | undefinedNoThe defaultOpen member uses the boolean | undefined contract.
onOpenChange((open: boolean) => void | Promise<void>) | undefinedNoThe onOpenChange member uses the ((open: boolean) => void | Promise<void>) | undefined contract.
childrenReactNodeNoThe children member uses the ReactNode contract.

Source

View the secondary source reference

On this page