github floating-ui/floating-ui @floating-ui/core@1.3.0

New Features

  • feat: allow function types for all middleware options, including detectOverflow, to allow derivation from state (#2359)

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

Refactors

  • refactor(types): exported middleware Options types (#2359)

    • The Options objects now include DetectOverflowOptions in them, and are auto-Partial where necessary. The types do not include the function type in them.

Bug Fixes

  • fix(arrow): ensure large padding option value does not cause incorrect centering (#2360)

Don't miss a new floating-ui release

NewReleases is sending notifications on new releases.