@uibox-pro/use-custom-control
v0.0.1
Published
> ReactJS hook. Customize your fabricjs object controls easily.
Downloads
1
Readme
useCustomControl
ReactJS hook. Customize your fabricjs object controls easily.
Extracted from uibox design editor. See demo here
Installation
yarn add @uibox-pro/use-custom-control
Example
import useCustomControl from '@uibox-pro/use-custom-control';
const App = () => {
useCustomControl(options, canvas)
return (
<canvas id="canvas"></canvas>
);
};
ReactDOM.render(<App />, document.getElementById('root'));
Open example folder for a complete example.