UNPKG

reablocks

Version:
35 lines (33 loc) 725 B
import { HTMLMotionProps } from 'motion/react'; import { FC, ReactNode } from 'react'; export declare const verticalVariant: { initial: { y: number; opacity: number; transition: { when: string; }; }; animate: { y: number; opacity: number; transition: { when: string; }; }; exit: { y: number; opacity: number; }; }; export interface MotionItemProps extends HTMLMotionProps<'div'> { /** * Direction of the motion. */ direction?: 'horizontal' | 'vertical'; /** * Children to render. */ children: ReactNode; } export declare const MotionItem: FC<MotionItemProps>;