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 예제를 불러오는 중…