framer-motion
Version:
An open source and production-ready motion library for React on the web
5 lines (4 loc) • 357 B
TypeScript
import { ComponentType, Ref } from "react";
import { MotionProps } from "../../motion";
import { CreateVisualElement, VisualElement } from "../../render/types";
export declare function useVisualElement<E>(createVisualElement: CreateVisualElement<E>, Component: string | ComponentType, props: MotionProps, isStatic: boolean, ref?: Ref<E>): VisualElement<E>;