0.0.9 • Published 8 years ago

simple-modal-es6 v0.0.9

Weekly downloads
7
License
MIT
Repository
github
Last release
8 years ago

Simple Modal ES6

npm version

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

  1. Add callback after open/close.
  2. Add option to exclude default close button.

Goal

Create the most minimal, developer friendly modal possible.

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.5

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago