Packages

@headlessui/react

2.2.10 · 7 Apr 2026MIT10.3M / weekRepositoryHomepagenpmAtom feed

Your version

1.0.0

major14 Apr 2021Where it was published

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 click not re-focusing the Menu.Button (#220, #256)

  • Fixed outside click not re-focusing the Listbox.Button (#220, #256)

  • Force focus in Menu.Items and Listbox.Options from within the component itself

  • Stop propagating keyboard/mouse events

Added

  • Add Disclosure, Disclosure.Button and Disclosure.Panel components

  • Add Dialog, Dialog.Overlay, Dialog.Tile and Dialog.Description components

  • Add Portal and Portal.Group component

  • Add Switch.Description component, which adds the aria-describedby to the actual Switch

  • Add FocusTrap component

  • Add Popover, Popover.Button, Popover.Overlay, Popover.Panel and Popover.Group components

  • All components that accept a className, can now also receive a function with the renderProp argument

  • Add RadioGroup, RadioGroup.Option, RadioGroup.Label and RadioGroup.Description components

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.