Files
penx/apps/web/lib/widget/motion-components.tsx
2025-05-16 18:30:02 +08:00

12 lines
374 B
TypeScript

import { ReactNode } from 'react'
import { HTMLMotionProps, motion } from 'motion/react'
import { Button, ButtonProps } from '@penx/uikit/button'
export const MotionButton: (
props: HTMLMotionProps<'button'> & ButtonProps,
) => ReactNode = motion(Button) as any
export const MotionBox: (
props: HTMLMotionProps<'div'> & ButtonProps,
) => ReactNode = motion.div as any