Bluemojo · ![GitHub license](https://camo.githubusercontent.com/6581c31c16c1b13ddc2efb92e2ad69a93ddc4a92fd871ff15d401c4c6c9155a4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)
Bluemojo is a set of JavaScript libraries for using color pickers or building your own.
- Predefined pickers
- Ability to create any custom picker
- Separate package for color utils
- TypeScript support
- No dependencies
npm install @bluemojo/sketch
npm install @bluemojo/chrome
npm install @bluemojo/colorful
npm install @bluemojo/elements
npm install @bluemojo/utils
import { Sketch } from '@bluemojo/sketch';
function Component() {
const [color, setColor] = useState('#FF0000');
return <Sketch value={color} onChange={setColor} />;
}
To use webpack 5 and React 17, you must include the alias in the webpack configuration.
resolve: {
alias: {
'react/jsx-runtime': require.resolve('react/jsx-runtime'),
},
},
Bluemojo is MIT licensed.