UNPKG

spartan-ui

Version:

React component library that focusses on getting the basics right leaving the design up to you

16 lines (15 loc) 474 B
import { FunctionComponent, ReactNode } from 'react'; import { CommonProps } from '../../types'; interface RenderProps { headingProps: object; } interface ModalProps extends CommonProps { children: (props: RenderProps) => ReactNode; id: string; open?: boolean; alert?: boolean; onClose: (e: MouseEvent | KeyboardEvent) => void; focusLockOptions?: object; } declare const Modal: FunctionComponent<ModalProps>; export default Modal;