UNPKG

@unicity/design-system

Version:

A comprehensive React component library built on Material-UI with advanced theming capabilities including neumorphism design support

42 lines 1 kB
import React from 'react'; import { ModalProps as MuiModalProps } from '@mui/material'; export interface ModalProps extends Omit<MuiModalProps, 'children'> { /** * Whether the modal is open */ open: boolean; /** * Callback fired when the modal is closed */ onClose: () => void; /** * The title of the modal */ title?: string; /** * The content of the modal */ children: React.ReactNode; /** * The size of the modal */ size?: 'small' | 'medium' | 'large' | 'fullWidth'; /** * Whether to show the close button */ showCloseButton?: boolean; /** * Whether clicking the backdrop closes the modal */ closeOnBackdropClick?: boolean; /** * Custom width for the modal */ maxWidth?: string | number; /** * Whether the modal should be centered */ centered?: boolean; } export declare const Modal: React.FC<ModalProps>; //# sourceMappingURL=Modal.d.ts.map