rc-simple-modal

2.5.1 • Public • Published

This is a simple React.js Modal component, easy to open and close !

Demo

See Demo Here

Install

npm i rc-simple-modal

Usage

import Modal from 'rc-simple-modal';

<Modal
   isOpen={isModalOpen} // Required, use a state to update this
   onClose={() => setIsModalOpen(false)} // Required, when user clicks the X icon on the header
   title='some text' // optional ofc, just adds some text to the header next to the X icon
   isLarge={true || false} // Optional, default is false, will make the modal a bit larger
>

   <p> This is the modal content ! </p>

</Modal>


Enjoy !!

Readme

Keywords

Package Sidebar

Install

npm i rc-simple-modal

Weekly Downloads

0

Version

2.5.1

License

MIT

Unpacked Size

13.3 kB

Total Files

5

Last publish

Collaborators

  • wassim_bj