Velocity X Components

Standard Navigation

Scrollable Section Tabs

A horizontally scrollable tab strip for pages with more sections than fit a narrow screen — edge fade masks hint there's more to scroll, the active tab scrolls itself into view on selection, and the overflow stays contained inside the strip instead of widening the page.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add standard-scrollable-section-tabs

Built for react. Needs react already installed as a peer dependency. An Astro-only project needs @astrojs/react wired up first — this won't run on its own in plain Astro.

Full docs for Scrollable Section Tabs →

Needs a licence key — subscribe here, then velocityx loginonce.

react v1.0.2 react
Scrollable Section Tabs

Props

NameTypeRequiredDefaultDescription
sections{ id: string, label: string }[]No[]required
activeIdstringYescontrolled selection
defaultIdstringYesuncontrolled initial selection
onChange(id: string) => voidYes
labelstringNo"Sections"accessible name for the tablist
classNamestringNo""

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/standard-scrollable-section-tabs/StandardScrollableSectionTabs.jsx

Using the Scrollable Section Tabs component

Install it with velocityx add standard-scrollable-section-tabs. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Standard Navigation.