UNPKG

@atlaskit/motion

Version:

A set of utilities to apply motion in your application.

15 lines (14 loc) 397 B
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 const Resizing = ({ children, ...props }) => { const resizing = useResizing(props); return /*#__PURE__*/React.createElement(React.Fragment, null, children(resizing)); };