How to get the props type of Chakra UI Box with Framer motion in typescript?
I found this page how to use Chakra UI + Framer-motion here
import { Box } from "@chakra-ui/core";
import { motion } from "framer-motion";
const MotionBox = motion.custom(Box);
function Example(){
return (
<MotionBox
size="40px"
...
/>
)
}
Which works fine but I need to get the Props Interface of MotionBox
e.g. in order to do this
interface Props extends MotionBoxProps {
...
}
const MotionBoxExtended = (props: Props) => {
return ...
}
4378 views
β€οΈ
1