0.0.5 • Published 1 year ago

@cavcon/react-gears v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-gears

npm Downloads

React-gears is a JavaScript library for creating a React component that displays an animated SVG gear.

Installation

npm install @cavcon/react-gears

Documentation

<Gear
  numTeeth="12"
  toothHeight="0.2"
  outSideDegrees="13"
  insideDegrees="15"
  holeRadius="0.3"
/>
ParameterDefaultDescription
numTeeth12The number of teeth on the gear
toothHeight0.2The height of the teeth
outsideDegrees13The number of degrees of the circle for the tip of each teeth. Value of 0 will be a pointed tooth.
insideDegrees15The number of degrees of the circle for the gap between each teeth. Value of 0 will display no gap.
holeRadius0.3Radius of the internal hole. Value of 0 will hide the internal hole.

License

Copyright (c) 2024 Cavanaugh Consulting LLC and individual contributors. Licensed under MIT license, see LICENSE for the full license.

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago