Menu Visibility

Track which react-horizontal-scrolling-menu items are on screen: useIsVisible(itemId | 'first' | 'last', defaultValue), useLeftArrowVisible/useRightArrowVisible, the options prop (ratio, rootMargin, threshold), items.getVisible()/subscribe/unsubscribe, and the async IntersectionObserver truth model (items must be seen once, menuVisible gating, non-reactive isFirstItemVisible reads). Load when disabling arrows at the edges, styling items by visibility, building progress indicators, or debugging flickering or dead arrows.

asmyshlyaev177 f790d88 13.5 KB Updated

File contents

asmyshlyaev177/react-horizontal-scrolling-menu/tree/main/skills/menu-visibility commit f790d8852a

Frequently asked questions

npx skillmds@latest add asmyshlyaev177/menu-visibility