UNPKG

soda-material

Version:

A component library that may follow [material design 3](https://m3.material.io/components) (a.k.a. material you)

19 lines (18 loc) 480 B
/// <reference types="react" /> /** * Provide a scrim to document.body and hold the children. * Currently only a utility for `<Dialog>` component */ export declare function ModalHolder(props: { open: boolean; /** * Children must has `position: fixed` */ children: React.ReactNode; onScrimClick?: () => void; /** * @default document.body */ portalTo?: Element | DocumentFragment; zIndex?: number; }): import("react").ReactPortal;