UNPKG

@atlaskit/motion

Version:

A set of utilities to apply motion in your application.

17 lines (16 loc) 549 B
import type React from 'react'; import { type MotionProps } from './types'; export interface ShrinkOutProps extends MotionProps<{ ref: React.Ref<any>; }> { } /** * __ShrinkOut__ * * Will shrink an element down to nothing when exiting. * Works best with flex children as collapsing margins can come with undesired behaviour. * * - [Examples](https://atlaskit.atlassian.com/packages/design-system/motion/docs/entering-motions) */ declare const ShrinkOut: ({ children, duration, onFinish }: ShrinkOutProps) => any; export default ShrinkOut;