UNPKG

@deep-foundation/deepcase

Version:

[![Gitpod](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/deep-foundation/deepcase) [![Discord](https://badgen.net/badge/icon/discord?icon=discord&label&color=purple)](https://discord.gg/deep-

8 lines 594 B
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