Components
← All components

Anchored Positioning

stimeo--anchored

Keeps a floating element beside its anchor, turning it around when it meets a screen edge.

  • Core

Keeps a floating element such as a popover or a hint beside the element it belongs to. It follows as the page scrolls and as the window resizes, and when it meets a screen edge it swings to the other side or slides along to stay in view. It writes only the position and never touches your decoration. Which side it ended up on is readable from CSS, so a bubble's arrow can follow along. While the floating element is hidden you can stop the tracking, so it stops measuring while there is nothing to see. It does not open, close or manage focus, so pair it with a popover or a dialog. The placement maths lives in a module you opt into, so it adds nothing to your bundle until you use it.

running

The panel is placed against the reference element. Choose a side and the panel shows where it actually ended up, which can change near a screen edge.

Keyboard

This component has no keyboard interactions of its own.