github tailwindlabs/headlessui @headlessui/react@v1.2.0

latest releases: @headlessui/react@v2.1.8, @headlessui/react@v2.1.7, @headlessui/react@v2.1.6...
3 years ago

Added

  • Introduce Open/Closed state, to simplify component communication (#466)

Fixes

  • Improve SSR for Dialog (#477)
  • Delay focus trap initialization (#477)
  • Improve incorrect behaviour for nesting Dialog components (#560)

The Open/Closed state unlocks a feature where all our components can interact with each other. This means that you don't need to use the render prop function, and that you also don't need the static prop anymore for transitions. Here is an example in the docs that explains this: https://headlessui.dev/react/menu#transitions

Don't miss a new headlessui release

NewReleases is sending notifications on new releases.