0.0.9 • Published 8 years ago
simple-modal-es6 v0.0.9
Simple Modal ES6
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.
Installation
$ npm install simple-modal-es6
Basic Usage
import SimpleModal from 'simple-modal-es6';
SimpleModal.open('<h1>Hello World</h1>');
SimpleModal.close();
Options
At this time there are no options.
To Do
- Add callback after open/close.
- Add option to exclude default close button.
Goal
Create the most minimal, developer friendly modal possible.