UNPKG

@confi/conflux-react-ui-test-package

Version:

Modern and minimalist React UI library.

30 lines (29 loc) 1.02 kB
import React from 'react'; import ModalTitle from './modal-title'; import ModalSubtitle from './modal-subtitle'; import ModalContent from './modal-content'; import ModalAction from './modal-action'; interface Props { disableBackdropClick?: boolean; onClose?: () => void; onOpen?: () => void; open?: boolean; width?: string; wrapClassName?: string; } declare const defaultProps: { width: string; wrapClassName: string; disableBackdropClick: boolean; }; declare type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>; export declare type ModalProps = Props & typeof defaultProps & NativeAttrs; declare type ModalComponent<P = {}> = React.FC<P> & { Title: typeof ModalTitle; Subtitle: typeof ModalSubtitle; Content: typeof ModalContent; Action: typeof ModalAction; }; declare type ComponentProps = Partial<typeof defaultProps> & Omit<Props, keyof typeof defaultProps> & NativeAttrs; declare const _default: ModalComponent<ComponentProps>; export default _default;