Width of the arrow.
@default — 14
Height of the arrow.
@default — 7
The corner radius (rounding) of the arrow tip.
@default — 0 (sharp)
Forces a static offset over dynamic positioning under a certain condition.
staticOffset?: string | number | null;Custom path string.
d?: string;Stroke (border) color of the arrow.
stroke?: string;Stroke (border) width of the arrow.
strokeWidth?: number;The arrow element to be positioned.
@default — undefined
The padding between the arrow element and the floating element edges. Useful when the floating element has rounded corners.
@default — 0
Provides data to position an inner element of the floating element so that it
appears centered to the reference element.
This wraps the core arrow middleware to allow React refs as the element.
@see — ://floating-ui.com/docs/arrow
Optimizes the visibility of the floating element by choosing the placement
that has the most space available automatically, without needing to specify a
preferred placement. Alternative to flip.
@see — ://floating-ui.com/docs/autoPlacement
Optimizes the visibility of the floating element by flipping the placement
in order to keep it in view when the preferred placement(s) will overflow the
clipping boundary. Alternative to autoPlacement.
@see — ://floating-ui.com/docs/flip
Provides data to hide the floating element in applicable situations, such as when it is not in the same clipping context as the reference element.
@see — ://floating-ui.com/docs/hide
Provides improved positioning for inline reference elements that can span over multiple lines, such as hyperlinks or range selections.
@see — ://floating-ui.com/docs/inline
Built-in limiter that will stop shift() at a certain point.
Modifies the placement by translating the floating element along the
specified axes.
A number (shorthand for mainAxis or distance), or an axes configuration
object may be passed.
@see — ://floating-ui.com/docs/offset
Optimizes the visibility of the floating element by shifting it in order to keep it in view when it will overflow the clipping boundary.
@see — ://floating-ui.com/docs/shift
Provides data that allows you to change the size of the floating element — for instance, prevent it from overflowing the clipping boundary or match the width of the reference element.
@see — ://floating-ui.com/docs/size
@deprecated — use onTypingChange prop in useTypeahead
Update the position of the floating element, re-rendering the component if required.
update: () => void;Pre-configured positioning styles to apply to the floating element.
floatingStyles: CSSProperties;Object containing the reference and floating refs and reactive setters.
refs: {A React ref to the reference element.
reference: MutableRefObject<RT | null>;A React ref to the floating element.
floating: MutableRefObject<HTMLElement | null>;A callback to set the reference element (reactive).
setReference: (node: RT | null) => void;A callback to set the floating element (reactive).
setFloating: (node: HTMLElement | null) => void;Object containing the reference and floating elements.
elements: {A callback invoked when both the reference and floating elements are
mounted, and cleaned up when either is unmounted. This is useful for
setting up event listeners (e.g. pass autoUpdate).
Object containing the reference and floating elements.
elements?: {The open state of the floating element to synchronize with the
isPositioned value.
@default — false
Whether to use transform for positioning instead of top and left
(layout) in the floatingStyles object.
@default — true