@deep-foundation/deepcase
Version:
[](https://gitpod.io/#https://github.com/deep-foundation/deepcase) [](https://discord.gg/deep-
8 lines • 594 B
JavaScript
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
import React from 'react';
import { Resizable } from 're-resizable';
import { motion } from 'framer-motion';
export const Resize = React.memo(({ onChangeSize, size, fillSize = true, children, style }) => {
return _jsx(_Fragment, { children: _jsx(Resizable, { as: motion.div, onResize: (e, direction, ref, d) => onChangeSize({ width: ref.offsetWidth, height: ref.offsetHeight }), size: size, style: Object.assign({ border: '1px dashed #605c60' }, style), children: children }) });
});
//# sourceMappingURL=resize.js.map