WIP
Circularity is a circular/radial menu built for React. The navigation can either be links or actions passed. See more in usage.
Examples can be found inside the examples directory. They are set up with create-react-app, so they are easy to start and test out.
npm install --save circularity
yarn add circularity
Circularity takes two props
[
{
title: 'Menu Title',
image: 'url/to/image',
action: 'http://someurl.com'
},
{
title: 'Menu Title',
image: 'url/to/image',
action: () => { do what you want }
}
]
import React from 'react'
import Circularity from 'circularity'
const items = [
{
title: 'Google please',
image: '/google_icon.svg',
action: 'http://google.com'
},
{
title: 'Alert me',
image: '/image.svg',
action: () => { alert('Hey you!') }
}
]
class MyComponent extends React.Component {
render() {
return <Circularity diameter={ 400 } items={ items } />
}
}
export default MyComponent