github floating-ui/floating-ui v2.0.0-alpha.2

latest releases: @floating-ui/dom@1.6.5, @floating-ui/utils@0.2.2, @floating-ui/react-native@0.10.5...
pre-release4 years ago

The second alpha of Popper 2 is here! From now on we'll try to keep track of the changes using the GitHub releases.

In this version:

  • feat: point to popper-lite for default ESM import;
  • fix: address Firefox quirk (#837);
  • feat: preventOverflow#tetherOffset and flip#checkVariation;

Breaking changes:

The default library export for ESM consumers is now popper-lite.js, this version includes the most basic modifiers needed to have a working popper. If you want to take advantage of the super-thin Popper core, you can still import from @popperjs/core/lib/popper-base.js to reproduce the previous behavior (no modifiers).

The preventOverflow and flip modifiers API slightly changed, preventOverflow#tether is now a boolean, and you are able to further configure it by defining the thetherOffset option.

The flip modifier has now a new option, checkVariation, that will attempt to flip the placement's variation (-start, -end) in order to keep the popper within its boundaries.

Don't miss a new floating-ui release

NewReleases is sending notifications on new releases.