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

import { Alpha, Hue, Slider, Sketch, Compact } from '@uiw/react-color';
import { 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

PackageVersion / unpkg / bundle size
@uiw/react-colornpm bundle size npm version Open in unpkg Open in CodeSandbox
@uiw/react-color-sketchnpm bundle size npm version Open in unpkg
@uiw/react-color-slidernpm bundle size npm version Open in unpkg
@uiw/react-color-compactnpm bundle size npm version Open in unpkg
@uiw/react-color-saturationnpm bundle size npm version Open in unpkg
@uiw/react-color-huenpm bundle size npm version Open in unpkg
@uiw/react-color-alphanpm bundle size npm version Open in unpkg
@uiw/react-color-shade-slidernpm bundle size npm version Open in unpkg
@uiw/color-convertnpm bundle size npm version Open in unpkg
@uiw/react-drag-event-interactivenpm bundle size npm version Open in unpkg
@uiw/react-color-editable-inputnpm bundle size npm version Open in unpkg

License

Licensed under the MIT License.

Keywords

FAQs

Package last updated on 08 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