unsullied-react-modal

0.1.6 • Public • Published

react-simple-modal

Very simple react component that presents content via modal.

Params

header {String} Header that appears above modal.

disableClose {Boolean} true will disable the modal from closing, false [default] will allow user to close.

closeModal {Number} Increment this property to trigger the modal to close.

handleClose {Method} callback method that is executed after close.

Images

To get the close icon working - you will need to copy the unsullied-close.svg into your image assets directory, and reference it with this css:

.unsullied-icon-close {
  background-image: url('/path/to/images/assets/unsullied-close.svg');
}

Package Sidebar

Install

npm i unsullied-react-modal

Weekly Downloads

2

Version

0.1.6

License

MIT

Last publish

Collaborators

  • moog16
  • ryanirilli