tailwindlabs / headlessui

Completely unstyled, fully accessible UI components, designed to integrate beautifully with Tailwind CSS.
https://headlessui.com
MIT License
26.28k stars 1.09k forks source link

Add React 19 support #3543

Closed RobinMalfait closed 1 month ago

RobinMalfait commented 1 month ago

This PR fixes an issue where @headlessui/react was not compatible with React 19.

We made sure that accessing refs is safe and works in React 18 and React 19. We also made sure to include React 19 as a valid version in the peer dependencies. For now, we also allowed the RC versions of React and React DOM.

vercel[bot] commented 1 month 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 Oct 25, 2024 1:50pm
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 25, 2024 1:50pm