UNPKG

@yamada-ui/motion

Version:

Yamada UI motion components

12 lines (9 loc) 459 B
import { WithoutAs } from '@yamada-ui/core'; import { Merge } from '@yamada-ui/utils'; import { MotionAs, MotionComponent } from './motion.types.mjs'; import * as React from 'react'; import 'motion/react'; declare function motionForwardRef<Y extends object, M extends MotionAs>(render: React.ForwardRefRenderFunction<any, { as?: MotionAs; } & Merge<React.ComponentPropsWithoutRef<M>, WithoutAs<Y>>>): MotionComponent<M, Y>; export { motionForwardRef };