Enode — API Reference
    Preparing search index...

    Type Alias DialogShellProps

    DialogShellProps: DialogShellLabel & {
        children: ReactNode;
        containment?: Containment;
        dismissOnBackdrop?: boolean;
        onClose: () => void;
        open: boolean;
        panelClassName?: string;
        size?: DialogShellSize;
        zIndex?: number;
    }

    Props for DialogShell.

    Type Declaration

    • children: ReactNode
    • Optionalcontainment?: Containment

      Anchor to the viewport (default — position: fixed, body portal) or to the closest positioned ancestor (position: absolute, rendered inline). Falls back to the nearest ContainmentProvider.

    • OptionaldismissOnBackdrop?: boolean

      Close on a click on the backdrop. Default false — a decision or a destructive confirm should not vanish on a stray click.

    • onClose: () => void

      Called on Escape, and on a backdrop click when dismissOnBackdrop.

    • open: boolean
    • OptionalpanelClassName?: string

      Extra panel classes — padding (the panel has none of its own, so a full-bleed hero can reach the edges), text alignment, a max height.

    • Optionalsize?: DialogShellSize

      Panel max width. Default "sm".

    • OptionalzIndex?: number

      Stacking. Default DIALOG_Z_INDEX.