A tiny utility that adds tab scrolling functionality. Version 1.0.1. It provides scroll buttons on either side of a tab container and handles mouse wheel scrolling. It emits a 'scroll' event with the new active node, old active node, and direction. This library exposes ES modules since version 1.0.0 and requires an ES module aware transpiler (Webpack, Rollup, Browserify + babelify) to bundle for the browser. It is lightweight and focuses solely on the scrolling behavior, leaving tab activation to the user.
npm install scroll-tabsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows importing scrollTabs, initializing with a container element and selector options, listening to scroll events, and updating after changes.
Use import scrollTabs from 'scroll-tabs' and bundle with an ES module aware tool.
Check for updates; currently no replacement.
Pass document.querySelector('.my-container') or similar.Omit the ignore option if not needed.
Use import scrollTabs from 'scroll-tabs' and use an ES module bundler.
Pass document.querySelector('#my-tabs') or a DOM element.Remove 'new'; scrollTabs is a factory function.
No dependency data recorded yet.