You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that Motion has a vanilla API, most of the types are only available under motion/react. Is it possible to export them?
For example, you want to create your own wrapper in Svelte, you will have to import all of the ff. props in motion/react
<scriptlang="ts">
importtype {DOMKeyframesDefinition,DynamicAnimationOptions,AnimationPlaybackControls,MotionProps// this can be used in other frameworks} from'motion/react'const props:MotionProps=$props()
</script>
The text was updated successfully, but these errors were encountered:
Now that Motion has a vanilla API, most of the types are only available under
motion/react
. Is it possible to export them?For example, you want to create your own wrapper in Svelte, you will have to import all of the ff. props in
motion/react
The text was updated successfully, but these errors were encountered: