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

Make basic and reactive props exclusive #4

Open
boar-is opened this issue Oct 23, 2024 · 0 comments
Open

Make basic and reactive props exclusive #4

boar-is opened this issue Oct 23, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@boar-is
Copy link
Owner

boar-is commented Oct 23, 2024

So we're able to pass either one or another:

// ❌
<motion.div className="" className$={atom} />

// ✅
<motion.div className="" />

// ✅
<motion.div className$={atom} />

Now, reactive props always override basic ones.

@boar-is boar-is added the enhancement New feature or request label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant