Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Export types from motion/react to be imported in vanilla motion #2870

Open
targetlucked69 opened this issue Nov 13, 2024 · 0 comments
Labels
feature New feature or request

Comments

@targetlucked69
Copy link

targetlucked69 commented Nov 13, 2024

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

<script lang="ts">
import type {
  DOMKeyframesDefinition,
  DynamicAnimationOptions,
  AnimationPlaybackControls,
  MotionProps // this can be used in other frameworks
} from 'motion/react'

const props: MotionProps = $props()
</script>
@targetlucked69 targetlucked69 added the feature New feature or request label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant