react-color-spin-wheel
TypeScript icon, indicating that this package has built-in type declarations

0.0.29 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i react-color-spin-wheel

Weekly Downloads

0

Version

0.0.29

License

none

Unpacked Size

123 kB

Total Files

9

Last publish

Collaborators

  • 365support