UNPKG

857 BTypeScriptView Raw
1import * as React from 'react';
2export interface ModalBoxProps extends React.HTMLProps<HTMLDivElement> {
3 /** Content rendered inside the ModalBox. */
4 children: React.ReactNode;
5 /** Additional classes added to the ModalBox */
6 className?: string;
7 /** Variant of the modal */
8 variant?: 'small' | 'medium' | 'large' | 'default';
9 /** Alternate position of the modal */
10 position?: 'top';
11 /** Offset from alternate position. Can be any valid CSS length/percentage */
12 positionOffset?: string;
13 /** Id to use for Modal Box label */
14 'aria-labelledby'?: string;
15 /** Accessible descriptor of modal */
16 'aria-label'?: string;
17 /** Id to use for Modal Box description */
18 'aria-describedby': string;
19}
20export declare const ModalBox: React.FunctionComponent<ModalBoxProps>;
21//# sourceMappingURL=ModalBox.d.ts.map
\No newline at end of file