{"repo":"react-component/color-picker","free":true,"listed":false,"github":"https://github.com/react-component/color-picker","clone":"git clone https://github.com/react-component/color-picker.git","description":"🎨 A compact color picker panel for React.","language":"TypeScript","stars":454,"topics":["ant-design","antd","javascript","react","react-component"],"license":"MIT","category":"ui-components","readme_excerpt":"@rc-component/color-picker Part of the Ant Design ecosystem. 🎨 A compact color picker panel for React. English 简体中文 Highlights - Supports controlled and uncontrolled color values. - Accepts string, number, RGB, RGBA, HSB, HSBA, and Color inputs. - Provides hue and alpha controls with change and drag-complete callbacks. - Exposes Color helpers for hex, RGB, and HSB conversions. Install Usage Examples Run the local dumi site: Then open http://localhost:8000 . API ColorPicker Property Description Type Default ---------------- --------------------------------------- ---------------------------------------------------------------------------- ----------------- defaultValue Default color value ColorGenInput - disabled Whether the color picker is disabled boolean false disabledAlpha Whether to hide the alpha slider boolean false panelRender Custom panel renderer (panel: React.ReactElement) = React.ReactElement - prefixCls Component class name prefix string rc-color-picker value Current color value ColorGenInput - onChange Callback when color changes (color: Color, info?: { type?: 'hue' \\ 'alpha'; value?: number }) = void - onChangeComplete Callback when a drag operation finishes (color: Color, info?: { type?: 'hue' \\ 'alpha'; value?: number }) = void - Color Method Description Type ----------- --------------------------- ------------------------------------------------------ toHexString Convert to hex color string () = string toHsb Convert to HSB object () = { h: number; s: number;","default_branch":null,"files":null,"tree":[],"storefront":"/r/react-component","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/react-component/color-picker/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}