alert-box-web-components

0.2.0 • Public • Published

Alert Box

Web Component for an "Alert Box" element. (Requires: HTML Imports, HTML Templates, Custom Elements, and Shadow DOM)

Import

<link rel="import" href="http://pixelhandler.github.io/alert-box-web-components/index.html">

Well don't really use that URL, but that is a copy of the dist file, instead install...

Install

npm install alert-box-web-components

Demo

Development

The example directory shows a few alerts and one using Object.observe for data bindings.

Click X icons to dismiss alert box, click buttons to render more.

The alert box on the lower right is an example of an alert box with a countdown. Hours and seconds tick down, then closes and a new alert follows.

Build

Brocfile.js (broccoli) is the build recipe, npm run build will create dist/index.html and dist/example/ only the index.html file is released with bower and npm packages. To watch and build use npm run start then open links under the heading below. Use ctrl-C to stop.

Reference

W3.org Specs

Tutorials / Links

Package Sidebar

Install

npm i alert-box-web-components

Weekly Downloads

3

Version

0.2.0

License

ISC

Last publish

Collaborators

  • pixelhandler