UNPKG

@mantine/modals

Version:

Modals manager based on Mantine components

13 lines (12 loc) 563 B
import { ConfirmLabels, ContextModalProps, ModalSettings } from './context'; export interface ModalsProviderProps { /** Your app */ children?: React.ReactNode; /** Predefined modals */ modals?: Record<string, React.FC<ContextModalProps<any>>>; /** Shared Modal component props, applied for every modal */ modalProps?: ModalSettings; /** Confirm modal labels */ labels?: ConfirmLabels; } export declare function ModalsProvider({ children, modalProps, labels, modals }: ModalsProviderProps): import("react/jsx-runtime").JSX.Element;