UNPKG

@atlaskit/motion

Version:

A set of utilities to apply motion in your application.

16 lines (15 loc) 589 B
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; var _excluded = ["children"]; import React from 'react'; import { useResizing } from './use-resizing'; /** * __Resizing__ * * Component which consumes the `useResizing()` hook under-the-hood. Its props are the same as the hook's opts. */ export var Resizing = function Resizing(_ref) { var children = _ref.children, props = _objectWithoutProperties(_ref, _excluded); var resizing = useResizing(props); return /*#__PURE__*/React.createElement(React.Fragment, null, children(resizing)); };