We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cecb38 commit b7fbd6bCopy full SHA for b7fbd6b
src/components/Modal.tsx
@@ -9,6 +9,7 @@ export type ModalProps = {
9
footer?: React.ReactElement;
10
footerAlignment?: 'left' | 'right';
11
hideHeader?: boolean;
12
+ size?: 'sm' | 'md' | 'lg' | 'xl' | 'fluid';
13
title?: string;
14
} & Omit<OverlayProps, 'dialogClassName' | 'dialogZIndex'>;
15
@@ -19,12 +20,13 @@ export default function Modal({
19
20
footerAlignment = 'right',
21
hideHeader = false,
22
onRequestClose,
23
+ size,
24
title,
25
...rest
26
}: ModalProps) {
27
return (
28
<Overlay
- className={classNames('modal', className)}
29
+ className={classNames('modal', { [`modal--${size}`]: size }, className)}
30
dialogClassName="modal__dialog"
31
dialogZIndex="modal"
32
onRequestClose={onRequestClose}
0 commit comments