Velocity X Components

Standard Navigation

Tab Bar — Animated Underline

Horizontal tab bar with a sliding underline that glides to the active tab's measured position, full Left/Right/Home/End keyboard navigation, and panels wired with correct ARIA tabs semantics.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add standard-tab-bar-underline

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 Tab Bar — Animated Underline →

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

react v1.0.1 react
Tab Bar — Animated Underline

Props

NameTypeRequiredDefaultDescription
tabs{ id: string, label: string, content?: ReactNode }[]No[]
defaultTabIdstringYesuncontrolled initial selection
activeTabIdstringYescontrolled selection
onChange(id: string) => voidYes
labelstringNo"Tabs"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-tab-bar-underline/TabBarUnderline.jsx

Using the Tab Bar — Animated Underline component

Install it with velocityx add standard-tab-bar-underline. 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.