Socket
Socket
Sign inDemoInstall

@uiw/react-color

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-color

Color Picker component for React.


Version published
Weekly downloads
17K
decreased by-12.9%
Maintainers
1
Weekly downloads
 
Created
Source
@uiw/react-color
react-color is a tiny color picker component for React apps.

Getting Started

npm i @uiw/react-color

Open in CodeSandbox Open in Github gh-pages

import { Slider, Sketch, Material, Colorful, Compact } from '@uiw/react-color';
import { Alpha, Hue, ShadeSlider, Saturation, Interactive, hsvaToHslaString } from '@uiw/react-color';

function Demo() {
  const [hex, setHex] = useState("#fff");
  return (
    <Sketch
      style={{ marginLeft: 20 }}
      color={hex}
      onChange={(color) => {
        setHex(color.hex);
      }}
    />
  );
}

Packages

PackageBundle size(gzip)Version / unpkg
@uiw/react-colornpm bundle size npm bundle sizenpm version Open in unpkg
@uiw/react-color-sketchbundle size bundle size(gzip)npm version Open in unpkg
@uiw/react-color-sliderbundle size bundle size(gzip)npm version Open in unpkg
@uiw/react-color-compactbundle size bundle size(gzip)npm version Open in unpkg
@uiw/react-color-materialbundle size bundle size(gzip)npm version Open in unpkg
@uiw/react-color-colorfulbundle size bundle size(gzip)npm version Open in unpkg
@uiw/react-color-circlebundle size bundle size(gzip)npm version Open in unpkg
@uiw/react-color-saturationbundle size bundle size(gzip)npm version Open in unpkg
@uiw/react-color-huebundle size bundle size(gzip)npm version Open in unpkg
@uiw/react-color-alphabundle size bundle size(gzip)npm version Open in unpkg
@uiw/react-color-swatchbundle size bundle size(gzip)npm version Open in unpkg
@uiw/react-color-shade-sliderbundle size bundle size(gzip)npm version Open in unpkg
@uiw/react-color-editable-inputbundle size bundle size(gzip)npm version Open in unpkg
@uiw/react-color-editable-input-rgbabundle size bundle size(gzip)npm version Open in unpkg
@uiw/react-drag-event-interactivebundle size bundle size(gzip)npm version Open in unpkg
@uiw/color-convertbundle size bundle size(gzip)npm version Open in unpkg

License

Licensed under the MIT License.

Keywords

FAQs

Package last updated on 12 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc