JSPM

@uiw/react-color-chorme

0.0.31
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q28006F
  • License MIT

Color Github Picker

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

npm bundle size npm version Open in unpkg

react-color-chorme

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.