import * as React from "react"; import Moveable, { DIRECTIONS } from "@/react-moveable"; import { useKeycon } from "react-keycon"; export default function App() { const { isKeydown } = useKeycon({ keys: ["meta"], }); return (
Target
{ e.target.style.cssText += e.cssText; }} onRotateStart={e => { e.setFixedDirection([-0.5, -0.5]); }} onRotate={e => { e.target.style.cssText += e.cssText; }} />
); }