color-picker-g
v0.1.22
Published
Simple colorpicker used with value & onChange property
Downloads
230
Readme
color-picker-g
ColorPicker component based on antd with React
Screenshot
Demo
online example: https://favori.gitee.io/gantd-landing (CodePen)
install
Feature
- Standard color board based on Antd
- Support read and write separation
Usage
import React from 'react';
import ColorPicker from 'color-picker-g';
function BasicUse() {
const [color, setColor] = useState('#EB2F96');
return <ColorPicker
value={color}
onChange={setColor.bind(null)}
/>
}
React.render(<BasicUse/>, mountNode);
API
Contact
- Create a Github issue for bug reports, feature requests, or questions
- Follow @GantFDT for announcements
- Add a ⭐️ star on GitHub to support the project❤️!
Anthor
GantFDT
License
MIT