floating-ui

A JavaScript library to position floating elements and create interactions for them.

MIT License

Downloads
202.3M
Stars
28.6K
Committers
104

Bot releases are visible (Hide)

floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • fix(types): replace React_2 with React in generated .d.ts files
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • fix(types): replace React_2 with React in generated .d.ts files
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • fix(FloatingFocusManager): return focus to reference when applicable even if not focused on open
  • fix(types): simplify React types
  • fix(types): replace React_2 with React in generated .d.ts files
  • fix(types): revert React.JSX.Element back to JSX.Element
  • fix(useHover): restMs + nullish open delay should respect restMs
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • fix: avoid spreading rects to support DOMRect types
  • fix(types): use DOM Derivable type
  • perf(autoUpdate): reduce layoutShift update checks while reference is clipped from view
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • fix: avoid spreading rects to support DOMRect types
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

  • fix(useFloating): external element synchronization with domReference and positionReference
  • fix(useFloating): set dataRef openEvent property to undefined on close. Fixes a minor issue when useHover restMs is combined with useClientPoint and focus modality was used before hover modality.
  • fix(useId): avoid import error in new bundlers when using React <18, and also ensure id collisions don't occur when multiple independent versions of Floating UI are used with React <18.
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

  • fix(useHover): ensure mouseOnly is respected when restMs is specified. Also ensure restMs is always 0 for touch input.
  • fix(types): export FloatingOverlayProps
  • feat(useDelayGroup): return the GroupContext value from the Hook, and don't require an id option to be passed. You only need to invoke useDelayGroup() and read the context data from it. As a result, useDelayGroupContext() has been deprecated as it no longer needs to be used.
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

  • fix(FloatingFocusManager): return focus to the first tabbable descendant of the reference element if the reference element itself is not focusable
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] 9 months ago

Patch Changes

  • fix: calculate reference element offset relative to offsetParent iframe. Fixes issue with positioning in nested iframes, such as the following:
<html>
  <iframe>
    <div>floating</div>
    <iframe>
      <div>reference</div>
    </iframe>
  </iframe>
</html>
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] 9 months ago

Patch Changes

  • fix: top layer element positioning and collision detection when using absolute strategy
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] 9 months ago

Patch Changes

  • fix(useFocus): avoid closing floating element when focus moves inside shadow roots
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] 9 months ago

Patch Changes

floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] 9 months ago

Patch Changes

floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] 9 months ago

Patch Changes

floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] 9 months ago

Patch Changes

  • perf: avoid getContainingBlock call for non-top layer elements
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] 9 months ago

Patch Changes

floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] 9 months ago

Patch Changes

floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] 9 months ago

Patch Changes

floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] 9 months ago

Patch Changes

  • chore: improve JSDocs
  • fix(FloatingPortal): unconditional rendering with Suspense
  • Update dependencies: @floating-ui/[email protected]
floating-ui - @floating-ui/[email protected]

Published by github-actions[bot] 9 months ago

Minor Changes