• Unwraps a motion component and returns either a string for motion.div or the React component for motion(Component).

    If the component is not a motion component it returns undefined.

    Parameters

    • component: string | ComponentType<{}>

    Returns React.ComponentType | string | undefined

Generated using TypeDoc