A custom HTML element that provides a color picker.
No extra requirements if run in a browser that supports custom elements, shadow DOM and HTML imports. Otherwise, use the platform.js polyfill provided.
Install the component using Bower:
$ bower install color-picker-element --save-
Import Web Components' polyfill:
<script src="bower_components/platform/platform.js"></script>
-
Import Custom Element:
<link rel="import" href="bower_components/color-picker-element/dist/color-picker.html">
-
Embed on page, optionally providing width and height attributes
<color-picker width="200" height="200"></color-picker>
-
Install local dependencies (requires Bower):
$ bower install && npm install -
Start the watch task and development server, then open
http://localhost:8000/demoin your browser.$ gulp