UNPKG

@atlaskit/motion

Version:

A set of utilities to apply motion in your application.

19 lines (18 loc) 780 B
import React from 'react'; import { type CallbackRef } from '../utils/use-element-ref'; import { type ResizingHeightOpts } 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 declare const ResizingHeight: ({ children, ...props }: ResizingHeightOpts & { children: (opts: { ref: CallbackRef; }) => React.ReactNode; }) => React.JSX.Element;