Compare the default position with a 10px gutter on the main axis.
offset(0) / offset(10)Web Components と Vue で一貫して動く、プロダクトですぐに使えるインターフェースを構築します。
offset、shift、flip、size、arrow、hide、inline、auto-placement がどう協調するかを確認します。
web-componentsCompare the default position with a 10px gutter on the main axis.
offset(0) / offset(10)Scroll horizontally. The panel stays on top and shifts along the x-axis to remain visible.
shift({padding: 8})Scroll up. Flip chooses the available side while shift keeps the panel inside the boundary.
bottom (default) + flip() → shift()Scroll horizontally. Floating UI Plus adds the arrow height to the requested visual gap.
offset(GAP) → shift() → arrow({element})Scroll vertically. Available height constrains the panel without adding a second popup scrollbar.
size({apply: set maxWidth / maxHeight})Scroll vertically. Auto placement chooses the roomiest side while shift keeps it inside the boundary.
autoPlacement({padding: 8}) → shift({padding: 8})Scroll up. The panel dims after escaping, then hides when its reference is fully clipped.
hide() + hide({strategy: 'escaped'})Compare the detached bounding box with the relevant client rect of a wrapped inline anchor.
Text before
Text before
inline() → offset(8)Vue の例を読み込んでいます…