React input color component with hsv color picker
The color picker is inspired by the sketch color picker
Starting from v2, this component is rewritten with emotion and it doesnot require any external css file.
npm install react-input-color --save yarn add react-input-color
https://react-input-color.caitouyun.com
The initialValue
property supports 6 (#RRGGBB
) and 8 (#RRGGBBAA
) digits hex value.
import React from 'react'; import InputColor from 'react-input-color'; function App() { const [color, setColor] = React.useState({}); return ( <div> <InputColor initialValue="#5e72e4" onChange={setColor} placement="right" /> <div style={{ width: 50, height: 50, marginTop: 20, backgroundColor: color.rgba, }} /> </div> ); }
MIT
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4