Packages

@headlessui/react

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

Upgrading @headlessui/react From 1.7.19 to 2.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 1.7.19Latest2.2.10
  1. 1.7.19yours
  2. 2.0.0target

Before you upgrade

Tick each one off as you go
  • Breaking2.0.0
  • Deprecated2.0.0
  • Deprecated2.0.0
  • Deprecated2.0.0

Release by release

  1. 2.0.0

    Migration needed6 May 202413 new · 8 fixes
    • Breaking

      Add new Checkbox component (#2887, #2962)

    • Deprecated

      Deprecate the RadioGroup.Option component in favor of new Radio component

    • Deprecated

      Deprecate the active prop in favor of new focus prop

    • Deprecated

      Deprecate the entered prop on the Transition component

10 other lines we could not sort, mostly version bumps
  • Built-in anchor positioning — using Floating UI, components like Menu, Listbox, and more can now automatically position their popovers to be anchored to their trigger, adapting as needed to changes in the viewport.

    2.0.0
  • Headless checkbox component — we've added a headless Checkbox component to complement our existing RadioGroup component, making it easy to build totally custom checkbox controls.

    2.0.0
  • HTML form components — we've added Input, Select, Textarea, Label, Description, Fieldset, and Legend components that handle all of the ID generation and aria-* attribute mapping you need to do to connect form fields together.

    2.0.0
  • Improved hover and focus-visible detection — using hooks from the awesome React Aria library under the hood, Headless UI now adds smarter data-hover and data-focus attributes to your controls that behave more consistently across different devices than the native pseudo-classes.

    2.0.0
  • Combobox list virtualization — the Combobox component can now handle giant lists of options with no performance issues.

    2.0.0
  • Always render hidden form input fields for Checkbox, Switch and RadioGroup components

    2.0.0
  • Dialog is now focused by default instead of the first focusable element

    2.0.0
  • Change default tags for ListboxOptions, ListboxOption, ComboboxOptions, ComboboxOption, and TabGroup components

    2.0.0
  • Change default tag from div to Fragment on Transition components (#3110, #3147)

    2.0.0
  • Attempt form submission when pressing enter on the ListboxButton component

    2.0.0

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.