Skip to content

pixelhandler/alert-box-web-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

About

An experiment with native Web Components, an alert box

Resources

License

Stars

Watchers

Forks

Packages

No packages published