Nominating Presidential Muppets
Have ideas to improve npm?Join in the discussion! »

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');
}

Install

npm i unsullied-react-modal

DownloadsWeekly Downloads

35

Version

0.1.6

License

MIT

Last publish

Collaborators

  • avatar
  • avatar