35012893e9
* Only use useServerHandoffComplete in React < 18 It’s only useful for the useId hook. It is not compatible with `<Suspense>` because hydration is delayed then. * Make sure portals first render matches the server by rendering nothing Since Portals cannot SSR the first render MUST also return `null`. React really needs an `isHydrating` API. * Lazily resolve root containers This fixes a problem where clicks were assumed to be outside because of the delayed `<Portal>` render. The second portal render doesn’t cause the dialog to re-render thus the initial ref values were stale. * Update changelog --------- Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
@headlessui/react
A set of completely unstyled, fully accessible UI components for React, designed to integrate beautifully with Tailwind CSS.
Installation
npm install @headlessui/react
Documentation
For full documentation, visit headlessui.dev.
Community
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
For casual chit-chat with others using the library: