Closed RobinMalfait closed 2 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
headlessui-react | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 12, 2024 11:50am |
headlessui-vue | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 12, 2024 11:50am |
This PR updates the newly exposed data attributes introduced in #3273
After playing with them in real projects, we improved the naming for a few reasons:
If you are describing the "from" state and if it's different for
enter
andexit
then you would have to type:And
data-[exit]:data-[from]
reads like you are transitioning from a certain state, but you are transitioning to that state.If you use
leave
instead ofexit
then it will be consistent with the properties that we already have on theTransition
component. Additionally, the length is the same now so they align better.vs