bokuweb/react-resizable-and-movable

View on GitHub
stories/scale/body-uncontrolled-x1-5.tsx

Summary

Maintainability
B
4 hrs
Test Coverage
import * as React from "react";
import { Rnd } from "../../src";
import { style } from "../styles";

export default () => (
  <div style={{ transform: "scale(1.5)" }}>
    <div style={{ marginLeft: "30px" }}>
      <Rnd
        style={style}
        bounds="body"
        scale={1.5}
        default={{
          width: 200,
          height: 200,
          x: 100,
          y: 100,
        }}
      >
        001
      </Rnd>
    </div>
  </div>
);