@uiw/react-color-chorme
TypeScript icon, indicating that this package has built-in type declarations

0.0.31 • Public • Published

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.

/@uiw/react-color-chorme/

    Package Sidebar

    Install

    npm i @uiw/react-color-chorme

    Weekly Downloads

    0

    Version

    0.0.31

    License

    MIT

    Unpacked Size

    69.9 kB

    Total Files

    12

    Last publish

    Collaborators

    • uiwjs
    • wcjiang