Modular, design-conscious color picker widget for JavaScript
npm install @jaames/iro
Modular, design-conscious color picker widget for JavaScript - with support for a bunch of color formats | iro.js.org
Features | Demo | Installation | Usage | Plugins | Documentation | Special Thanks | Forum
* Work with colors in hex, RGB, HSV and HSL formats (plus kelvin temperatures!) in one simple, frictionless API
* Add multiple colors to the same color picker for selecting color harmonies and themes
* Create the perfect color picker from a selection of pre-built UI components
* All of iro.js can run from a single script - no extra CSS, images, or third-party libraries required!
* ~9kb minified and gzipped
* Licenced under MPL 2.0 - 100% free for personal and commercial use
![]()
* Basic introduction
* Multicolor
* Components / alternate layouts
* Custom handle SVGs
![]()
``sh`
npm install @jaames/iro --save
If you are using a module bundler like Webpack or Rollup, import iro.js into your project:
`js
// Using ES6 module syntax
import iro from '@jaames/iro';
// Using CommonJS modules
const iro = require('@jaames/iro');
`
`html`
When you manually include the library like this, iro.js will be made globally available on window.iro.
Development version
Uncompressed, with source comments included. Intended for debugging.
Production version
Minified and optimized version.
Then add it to the
of your page with a