floating-ui icon indicating copy to clipboard operation
floating-ui copied to clipboard

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

Results 112 floating-ui issues
Sort by recently updated
recently updated
newest added

Currently, the library doesn't handle very well scenarios in which the reference and the floating elements are rendered in two different documents — for example, when the reference is inside...

We are building a design system based toolkit and as such all our size, spacing, and such foundational values come from design tokens and are either unit-less or in relative...

Closes #1869 ## What This PR adds better support for cases where the reference and the floating elements are in two different documents — for example, if the reference is...

I'm using modal window from your example together with the react-toastify module. When modal window is open and toast are shown, I'm trying to close the toast, but together with...

## Code: ```tsx const { x, y, reference, floating } = useFloating({ placement: "top", middleware: [shift({ mainAxis: false })], }); return ( ... ... ) ``` ## Error Output ```...

Currently, the `limitShift` function considers two types of "offsets" [when computing the min/max limits](https://github.com/floating-ui/floating-ui/blob/15d1f49b966f9cf472141749f6ebdb4c75e62d5d/packages/core/src/middleware/shift.ts#L176-L213) for the `shift` middleware: - the offset from the `offset` middleware (added - the offset from...

For the following HTML structure, hide middleware return `true`, indicate that reference element been hided. Event though its parent is `overflow:hidden` and computed style `height: 0`, actually `position: absolute` make...

Bug

**Describe the bug** A clear and concise description of what the bug is. `computePosition()` is not calculating SVG elements as mask in FireFox browser properly. **To Reproduce** https://codesandbox.io/p/sandbox/adoring-black-phg3gd?file=%2Fsrc%2Findex.js Steps to...

browser bug

**Describe the bug** A clear and concise description of what the bug is. # `width`, `height` get properties of rect are loss when using object spreading from DOMRect instance I'm...

bug
has workaround