Package Exports
- @uiw/react-color-chorme
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@uiw/react-color-chorme) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
React Color Github

Install
npm i @uiw/react-color-chorme
Usage
import Chorme from '@uiw/react-color-chorme';
import { GithubPlacement } from '@uiw/react-color-github';
function Demo() {
const [hex, setHex] = useState("#fff");
return (
<Chorme
color={hex}
placement={GithubPlacement.Right}
onChange={(color) => {
setHex(color.hex);
}}
/>
);
}
Props
import { GithubProps } from '@uiw/react-color-github';
export enum ChromeInputType {
HEXA = 'hexa',
RGBA = 'rgba',
HSLA = 'hsla',
}
export interface ChromeProps extends Omit<GithubProps, 'colors'> {
inputType?: ChromeInputType;
}
License
Licensed under the MIT License.