react-radial
v1.0.8
Published
a radial component built with react and resonance
Downloads
10
Maintainers
Readme
react-radial
By Mode Lab
Intro
This is a straightforward, customizable radial menu, built with React and Resonance (a library that allows React and D3js to play along nicely).
The radial component is built with SVG, and can be ported into a div, canvas, WebGL scene, etc. We use radial menus for 3D interaction often, and decided to build a generic component for future use. The demo file is an interactive environment for defining how you want the radial menu to look. Check it out here.
Getting Started
Install the component into your project
npm install --save react-radial
Load the component into your app
import React from 'react';
import { ReactRadial } from 'react-radial';
class Component extends React.Component {
render() {
return <ReactRadial />;
}
}
Remmeber to click on your canvas/div after loading the page (the radial menu does not load automatically). Please post any issues.