Compare the default position with a 10px gutter on the main axis.
offset(0) / offset(10)Custom elements for precise positioning and dependable
keyboard, pointer, and focus interactions.
Each card keeps one or more <floating-root open>elements inspectable.
Compare the default position with a 10px gutter on the main axis.
offset(0) / offset(10)Scroll horizontally. The panel shifts to remain visible.
shift({padding: 8})Scroll up. The preferred bottom placement flips when space changes.
placement="bottom" + flip()Scroll horizontally. The arrow targets the reference center.
shift() → arrow({element})Available height constrains the panel while content remains scrollable.
size({apply: set maxWidth / maxHeight})The panel continuously chooses the side with the most space.
autoPlacement({padding: 8})The panel dims after escaping, then hides with its clipped reference.
hide() + hide({strategy: 'escaped'})Compare a bounding box with the relevant client rect of an inline anchor.
Text before
Text before
inline() → offset(8)