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 Giant panda
You need to use the latest alpha of motion.
View full answer

5 Replies

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