# react-rotate-menu

> React Rotate Menu

Latest version **0.2.4** (published 2018-03-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-rotate-menu
pnpm add react-rotate-menu
yarn add react-rotate-menu
bun add react-rotate-menu
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.4 |
| Published | 2018-03-07 |
| First published | 2018-01-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 32.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | kairi |
| Maintainers | kairi1227 |
| Keywords | react, rotate, menu |

## Links

- npm: https://www.npmjs.com/package/react-rotate-menu
- Repository: https://github.com/wafersystems/react-rotate-menu
- Homepage: https://github.com/wafersystems/react-rotate-menu#readme
- Issues: https://github.com/wafersystems/react-rotate-menu/issues
- npm.io page: https://npm.io/package/react-rotate-menu

## Dependencies (4)

- [react](https://npm.io/package/react.md) ^16.2.0
- [react-dom](https://npm.io/package/react-dom.md) ^16.2.0
- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [prop-types](https://npm.io/package/prop-types.md) ^15.6.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.2.4 (latest) — 2018-03-07
- 0.2.3 — 2018-02-28
- 0.2.2 — 2018-02-27
- 0.2.1 — 2018-02-26
- 0.2.0 — 2018-02-24
- 0.1.3 — 2018-02-08
- 0.1.2 — 2018-02-07
- 0.1.1 — 2018-02-06
- 0.1.0 — 2018-01-17

## README

# react-rotate-menu
React Rotate Menu

[![npm](https://img.shields.io/npm/v/react-rotate-menu.svg?maxAge=2592000?style=plastic)](https://www.npmjs.com/package/react-rotate-menu)
[![NPM downloads](http://img.shields.io/npm/dm/react-rotate-menu.svg?style=flat-plastic)](https://npmjs.org/package/react-rotate-menu)

## Example

![Example](https://github.com/vkingw/react-rotate-menu/blob/master/example.gif)

## How to use

### install

`npm install react-rotate-menu --save`

### React 

```js
import RotateMenu from 'react-rotate-menu'

<RotateMenu dataSource={data}/>

```

Properties  | Description | Type | Default Values
------------- | ------------- | --------------| ------------- 
dataSource  | Need to display the data（[Data](###Data)） | array | []
radius  | The radius of the circle（Had better be in between 150 and 200） | number | 150
titleFontColor | title font color | string | #fff
titleFontSize | title font size | string | 16px
buttonFontColor | button font color | string | #fff
buttonFontSize | title font seze | string | 28px
buttonBackground | button background color | string | #fff
className | The custom style | sring |
onClick | on click CallBack,e is event,data is button data | function(e,data){}|
moreText  | more button text | string | More
centerButtonClassName | center button class name,when set this prop default value will cover. | String |
ringButtonClassName |ring button class name,when set this prop default value will cover. | String |
showRingButtonTitle |show ring button title. | bool | true



### Data

````
let data = []
for (let i = 0; i < 12; i++) {
  data.push({
    text: `Floor${i}`,
    title: `F${i}`,
    ...(add you need)
  })
}
````

### Development

````
$ git clone https://github.com/wafersystems/react-rotate-menu.git
$ npm i
$ npm run-script start

````

---
_Source: https://npm.io/package/react-rotate-menu · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
