UNPKG

reablocks

Version:
35 lines (34 loc) 751 B
import { FC, ReactNode } from 'react'; import { HTMLMotionProps } from 'motion/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. * @default 'vertical' */ direction?: 'horizontal' | 'vertical'; /** * Children to render. */ children: ReactNode; } export declare const MotionItem: FC<MotionItemProps>;