Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
August 18, 2021 08:29 pm GMT

react-color-palette: component for your React project.

Hello everyone!

I would like to introduce you to my <ColorPicker /> component.
I will be glad of any feedback, have a nice day!

GitHub Repo
Online Demo

Features:

  • Lightweight
  • No dependencies
  • Strict

Installation

npm

npm install react-color-palette

yarn

yarn add react-color-palette

Usage

import { ColorPicker, useColor } from "react-color-palette";import "react-color-palette/lib/css/styles.css";export const App = () => {  const [color, setColor] = useColor("hex", "#121212");  return <ColorPicker width={456} height={228} color={color} onChange={setColor} hideHSV dark />;};

Original Link: https://dev.to/wondermarin/react-color-palette-colorpicker-component-for-your-react-project-29ng

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To