👷♀️ 🔨 )
react-fabricjs-whiteboard ( React whiteboard component based on Fabric.js and React-PDF.
Compatibility
React 17
Installation
npm install farapod-whiteboard
or
yarn add farapod-whiteboard
Usage
import { Whiteboard } from "react-fabricjs-whiteboard";
const App = () => {
return <Whiteboard aspectRatio={4 / 3}/>
};
props
Name | Type | Default | Description |
---|---|---|---|
aspectRatio | number | 4/3 | An aspect ratio(width/height) of the canvas. You can resize the canvas with the same aspect ratio. |