import { Draw, DrawState } from "draft-pad";
import { FC, useState } from "react";
const RATIO = 1.5;
const WIDTH = 2000;
const MyDraftPad: FC = () => {
const [drawState, setDrawState] = useState(DrawState.createEmpty(RATIO, WIDTH));
return <Draw drawState={drawState} onChange={setDrawState} />;
};
-
Notifications
You must be signed in to change notification settings - Fork 0
slotDumpling/draft-pad
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
The controlled canvas component used by Multibility.
Resources
Stars
Watchers
Forks
Packages 0
No packages published