365support / react-color-spin-wheel

컬러 휠 라이브러리 제작

Home Page:https://react-color-spin-wheel.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React-color-spin-wheel

Sep-25-2023 13-42-09

Installation

$ npm install --save react-color-spin-wheel
$ yarn add react-color-spin-wheel

The gist

function Wheel() {
  const wheelColors = ["MistyRose", "Wheat", "lightblue", "Khaki", "Lavender"];

  const [selectedColor, setSelectedColor] = useState("");

  return (
    <SpinWheel
      colors={wheelColors}
      lineWeight={4}
      onColorSelect={(color) => {
        setSelectedColor(color);
      }}
      initialRotationDegree={0}
      extractionDegrees={0}
      size={300}
    />
  );
}

Documentation

Check the documentation to get you started!

License

Licensed under MIT

About

컬러 휠 라이브러리 제작

https://react-color-spin-wheel.netlify.app/

License:MIT License


Languages

Language:TypeScript 89.5%Language:JavaScript 5.7%Language:HTML 4.8%