Components
← All components

Overflow Indicator

stimeo--overflow-indicator

Detects remaining scroll room and exposes data-overflow-start / data-overflow-end.

The stimeo--overflow-indicator controller is a state-detection utility with no APG widget. It watches the viewport's scroll position and size (via the wired scroll action, a LayoutObserver for resize, and a MutationObserver for content changes) and syncs data-overflow-start / data-overflow-end so consumer CSS can draw edge shadows or arrows for "more content this way". Optional page buttons scroll one viewport at a time (scrollByPage) and have their disabled state synced to the matching direction's remaining room; it dispatches stimeo--overflow-indicator:change. data-overflow-* carry no ARIA semantics. Behavior only — shadows and arrows are owned by this Playground; all observers and listeners are released on disconnect (Turbo included), and scrollByPage honors prefers-reduced-motion.

running
Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
Item 7
Item 8
Item 9
Item 10

Keyboard

KeyAction
Enter / Space Activate a scroll button (standard button behavior; optional).