@headlessui/react
2.2.10 · 7 Apr 2026MIT10.3M / weekRepositoryHomepagenpmAtom feed
1.7.19 is the newest release of 1.x.
In short
8 new3 fixed4 changed
Release note
This is the v1 release of Headless UI - React
We introduced a bunch of new components for this release:
We also created a beautiful new documentation website: headlessui.dev/react
Changelog
Fixes
Fixed
outside clicknot re-focusing theMenu.Button(#220, #256)Fixed
outside clicknot re-focusing theListbox.Button(#220, #256)Force focus in
Menu.ItemsandListbox.Optionsfrom within the component itselfStop propagating keyboard/mouse events
Added
Add
Disclosure,Disclosure.ButtonandDisclosure.PanelcomponentsAdd
Dialog,Dialog.Overlay,Dialog.TileandDialog.DescriptioncomponentsAdd
PortalandPortal.GroupcomponentAdd
Switch.Descriptioncomponent, which adds thearia-describedbyto the actual SwitchAdd
FocusTrapcomponentAdd
Popover,Popover.Button,Popover.Overlay,Popover.PanelandPopover.GroupcomponentsAll components that accept a
className, can now also receive a function with the renderProp argumentAdd
RadioGroup,RadioGroup.Option,RadioGroup.LabelandRadioGroup.Descriptioncomponents
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.