Menu Recipes

Recipes composed on the react-horizontal-scrolling-menu public API — NOT props: autoplay (setInterval + scrollNext gated on menuVisible), infinite loop/carousel (clone head/tail + scrollLeft teleport at seams), center on click (scrollToItem 'center'), save/restore scroll position (onUpdate, onInit, scrollContainer), load-more with a loader item (items.last()?.visible in onUpdate), one item per scroll (getPrevElement/getNextElement), hiding arrows, multiple menus, tab switching. Load when asked for autoplay, looping, carousel-like behavior, infinite scroll, or any feature missing from the props table — inventing an autoplay/loop/snap prop generates dead code.

asmyshlyaev177 e0bf669 3 files · 23.2 KB Updated

File contents

asmyshlyaev177/react-horizontal-scrolling-menu/tree/main/skills/menu-recipes commit e0bf669287

Frequently asked questions

npx skillmds@latest add asmyshlyaev177/menu-recipes