FloatingArrow
Renders a customizable <svg>
pointing arrow triangle inside the floating
element that gets automatically positioned.
Usage
Props
ref* | Bound element reference. |
context* | The context object returned from useFloating(). |
width | The width of the arrow. |
height | The height of the arrow. |
tipRadius | The radius (rounding) of the arrow tip. |
staticOffset | A static offset override of the arrow from the floating element edge. Often desirable if the floating element is smaller than the reference element along the relevant axis and has an edge alignment (start/end). |
d | A custom path for the arrow. Useful if you want fancy rounding. The path should be inside a square SVG and placed at the bottom of it. The path is designed for the 'bottom' placement, which will be rotated for other placements. |
fill | The color of the arrow. |
stroke | The stroke (border) color of the arrow. This must match (or be less than) the floating element’s border width. |
strokeWidth | The stroke (border) width of the arrow. |
Utility Classes and Styles
Provide arbitrary utility classes using the standard attribute.
Compare
Compare to Floating UI React.