UNPKG

soda-material

Version:

A React(>=18) component library that may follow [Material Design 3](https://m3.material.io/components) (a.k.a. Material You)

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