Next.js Discord

Discord Forum

How to add className to motion div

Answered
Sun bear posted this in #help-forum
Open in Discord
Sun bearOP
Ever since upgrading to Next 15, I've noticed that className just doesn't exist on motion.div anymore? Anyone know how I can fix this and get back to styling my motion elements with tailwindcss?
Answered by Asian black bear
You need to use the latest alpha of motion.
View full answer

5 Replies

Sun bearOP
please mention me/dm me if you reply
Asian black bear
You need to use the latest alpha of motion.
Answer
Asian black bear
I think it's 12.0.0-alpha.2 at the moment.
@Asian black bear I think it's `12.0.0-alpha.2` at the moment.
Sun bearOP
thank you!