@atlaskit/motion
Version:
A set of utilities to apply motion in your application.
21 lines (20 loc) • 948 B
TypeScript
import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
import { type IconMotionHandle, type IconMotionProps } from './icon-motion-base';
import IconMotionRotate from './icon-motion-rotate';
export type { IconMotionHandle, IconMotionProps } from './icon-motion-base';
export type { IconMotionRotateProps } from './icon-motion-rotate';
/**
* The base is wrapped so that the `xcss` it takes for effects such as `IconMotion.Rotate` isn't part
* of the public props.
*/
declare const IconMotionPublic: ForwardRefExoticComponent<IconMotionProps & RefAttributes<IconMotionHandle>>;
/**
* __IconMotion__
*
* Animates an icon when it is swapped for a different one, using the `motion.iconography` tokens.
* Effects that respond to an interaction are available as properties, such as `IconMotion.Rotate`.
*/
declare const IconMotion: typeof IconMotionPublic & {
Rotate: typeof IconMotionRotate;
};
export default IconMotion;