UNPKG

@atlaskit/motion

Version:

A set of utilities to apply motion in your application.

23 lines (22 loc) 1.08 kB
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; var _excluded = ["children"]; /* eslint-disable @repo/internal/deprecations/deprecation-ticket-required */ import React, { Fragment } from 'react'; import { useResizingHeight } from './use-resizing-height'; /** * __ResizingHeight__ * * Component which consumes the useResizingHook() under-the-hood. Its props are the same as the hooks opts. * * See [examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/resizing-motions). * * @deprecated Use `Resizing` from `@atlaskit/motion/resizing` instead. Pass `dimension="height"` * to animate height changes. The new component supports `'width'`, `'height'`, or `'both'`. */ export var ResizingHeight = function ResizingHeight(_ref) { var children = _ref.children, props = _objectWithoutProperties(_ref, _excluded); var resizing = useResizingHeight(props); return /*#__PURE__*/React.createElement(Fragment, null, children(resizing)); }; /* eslint-enable @repo/internal/deprecations/deprecation-ticket-required */