@atlaskit/motion
Version:
A set of utilities to apply motion in your application.
22 lines (21 loc) • 871 B
TypeScript
/**
* @jsxRuntime classic
* @jsx jsx
*/
import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
import { type IconMotionHandle, type IconMotionProps } from './icon-motion-base';
export interface IconMotionRotateProps extends IconMotionProps {
/**
* Holds the rotated pose (90°) when `true` and eases back to neutral when `false`. You decide when,
* from any state, such as the hover, press or focus state of a button around the icon.
*/
isActive?: boolean;
}
/**
* __IconMotion.Rotate__
*
* `IconMotion` that also rotates the icon 90° while `isActive`, and eases it back when it is not.
* It takes every `IconMotion` prop, and still animates icons that are swapped.
*/
declare const IconMotionRotate: ForwardRefExoticComponent<IconMotionRotateProps & RefAttributes<IconMotionHandle>>;
export default IconMotionRotate;