framer-motion
Version:
A simple and powerful JavaScript animation library
14 lines (11 loc) • 355 B
JavaScript
import { motionComponentSymbol } from './symbol.mjs';
/**
* Checks if a component is a `motion` component.
*/
function isMotionComponent(component) {
return (component !== null &&
typeof component === "object" &&
motionComponentSymbol in component);
}
export { isMotionComponent };
//# sourceMappingURL=is-motion-component.mjs.map