Packages

@floating-ui/core

1.8.0 · 11 Jul 2026MIT130.1M / weekRepositoryHomepagenpmAtom feed

Your version

1.3.0

11 Jun 2023Where it was published

1.8.0 is the newest release of 1.x.

In short

1 new1 fixed1 internal

Release note

New Features

  • Allow function types for all middleware options, including detectOverflow, to allow derivation from state

    // Options
    shift({mainAxis: true});
    // Derived from state
    shift((state) => ({mainAxis: state.rects.reference.width > 10}));

Bug Fixes

  • arrow: Ensure large padding option value does not cause incorrect centering