Current Beta Testing (Not Production Ready)
A simple modal with minimal styles and fixed positioning. Modal close is trigged by a background or close button click, or pressing the ESC key.
$ npm install simple-modal-es6
import SimpleModal from 'simple-modal-es6';
SimpleModal.open('<h1>Hello World</h1>');
SimpleModal.close();
At this time there are no options.
- Add callback after open/close.
- Add option to exclude default close button.
Create the most minimal, developer friendly modal possible.