Skip to content
Navigation

NavTabs

A link-based tab bar for page-level navigation. Each tab is a real anchor, so pair it with server-driven routing (e.g. a ?tab= query param) to keep tabs bookmarkable and the back button working.

Import

import {
  NavTabs,
  NavTabsLink,
} from "@mikenotthepope/substrateui"

Composition

NavTabs
└── NavTabsLink

With a Next.js Link

NavTabsLink API

PropTypeDefaultDescription
activebooleanMarks this tab as the current one — draws the underline and sets aria-current="page".
disabledbooleanDims the tab and blocks interaction (aria-disabled).
badgeReact.ReactNodeOptional trailing count or status pill.
renderReactElementRender a different element instead of an <a> (e.g. render={<Link href=… />}), so the tab keeps soft navigation.