github tailwindlabs/headlessui @headlessui/react@v2.0.0-alpha.1

latest releases: @headlessui/react@v2.2.0, @headlessui/react@v2.1.10, @headlessui/react@v2.1.9...
pre-release10 months ago

Added

  • Add immediate prop to <Combobox /> for immediately opening the Combobox when the input receives focus (#2686)
  • Add virtual prop to Combobox component (#2779)
  • Add new Checkbox component
  • Add new Radio component as an alternative to the existing RadioGroup.Option component
  • Add new Button component
  • Add new Input component
  • Add new Textarea component
  • Add new Select component
  • Add new Field, Label, Description, Fieldset and Legend components
  • Add new DataInteractive component
  • Add new anchor and modal prop to ComboboxOptions, ListboxOptions, MenuItems and PopoverPanel components
  • Add new ListboxSelectedOption component
  • Add new MenuSection, MenuHeading, and MenuSeparator components
  • Add new simplified data-* attributes as an alternative to the existing data-headlessui-state="..." attribute
  • Add autoFocus prop on focusable components (which maps to data-autofocus)

Changed

  • Bumped to React and React DOM 18
  • Dialog is focused by default instead of the first focusable element (unless an element exists with a data-autofocus in the dialog)

Fixed

  • Don't call <Dialog>'s onClose twice on mobile devices (#2690)
  • Lazily resolve default containers in <Dialog> (#2697)
  • Ensure hidden Tab.Panel components are hidden from the accessibility tree (#2708)
  • Add support for role="alertdialog" to <Dialog> component (#2709)
  • Ensure blurring the Combobox.Input component closes the Combobox (#2712)
  • Allow changes to the className prop when the <Transition /> component is currently not transitioning (#2722)
  • Export (internal-only) component interfaces for TypeScript compiler (#2313)
  • Fix infinite render-loop for <Disclosure.Panel> and <Popover.Panel> when as={Fragment} (#2760)
  • Fix VoiceOver bug for Listbox component in Chrome (#2824)
  • Fix outside click detection when component is mounted in the Shadow DOM (#2866)
  • Fix CJS types (#2880)
  • Fix error when transition classes contain new lines (#2871)
  • Fix iOS scroll lock glitches

Don't miss a new headlessui release

NewReleases is sending notifications on new releases.