UNPKG

593 BTypeScriptView Raw
1import * as React from 'react';
2import Modal from 'react-responsive-modal';
3
4const onClose = () => null;
5const open = true;
6
7function SimpleModal() {
8 return <Modal onClose={onClose} open={open} />;
9}
10
11function PropsModal() {
12 return (
13 <Modal
14 onClose={onClose}
15 open={open}
16 closeOnEsc={true}
17 center={true}
18 showCloseIcon={true}
19 closeIconSize={20}
20 animationDuration={20}
21 onEntered={() => null}
22 onExited={() => null}
23 onEscKeyDown={() => null}
24 onOverlayClick={() => null}
25 classNames={{}}
26 styles={{}}
27 />
28 );
29}