UNPKG

@patternslib/patternslib

Version:

Patternslib is a JavaScript library that enables designers to build rich interactive prototypes without the need for writing any Javascript. All events are triggered by classes and other attributes in the HTML, without abusing the HTML as a programming la

21 lines (11 loc) 523 B
## Description A pattern for creating a custom colour picker or polyfill. ## Documentation This pattern provides a styleable colour picker. It can be used as a fallback for browsers which don't yet support the HTML5 colour input. ### Examples ####Falling back to the browser's HTML5 picker if available. <input type="color" name="color"> ####Enforcing the styled non-HTML5 picker universally. By default this pattern will NOT defer to the browser's HTML5 picker. <input class="pat-colour-picker" type="color">