UNPKG

@kadconsulting/dry

Version:
28 lines (27 loc) 1.09 kB
/// <reference types="react" /> export interface ModalProps extends React.HTMLAttributes<HTMLElement> { passProps?: object; /** Support @testing-library/react `screen.getByTestId` */ 'data-testid'?: string; onClose: () => void; headerText?: string; subHeaderText?: string; children: React.ReactNode; isOpen: boolean; leftButtonHandler?: () => void; leftButtonText?: string; leftButtonType?: 'primary' | 'secondary' | 'tertiary' | 'danger' | 'ghost-danger' | 'ghost-info' | 'outline-transparent' | 'ghost-text'; rightButtonText?: string; rightButtonType?: 'primary' | 'secondary' | 'tertiary' | 'danger' | 'ghost-danger' | 'ghost-info' | 'outline-transparent' | 'ghost-text'; rightButtonHandler?: () => void; leftButtonDisabled?: boolean; rightButtonDisabled?: boolean; leftButtonLoading?: boolean; rightButtonLoading?: boolean; leftButtonIcon?: React.ReactNode; rightButtonIcon?: React.ReactNode; leftButtonNote?: string; rightButtonNote?: string; isLight?: boolean; hasCloseButton?: boolean; }