Skip to content

Navigation

App header, sidebar and nav items.

NavigationLive · light and dark follow the theme switch

Add the source to a shadcn project

npx shadcn@latest add https://docs.atomus.io/r/navigation.jsonOpen in v0

Installs the component source, its CSS and the Atomus tokens into components/atomus/. How the registry works

From guidelines/components/navigation.md · Open in Figma: AppHeader · SidebarNavigation · NavItem

Properties, variants and anatomy of the Figma components. React props use the same names.

Top navigation bar for apps.

Variants: 1

App sidebar 280px or 72px rail.

Variants: 2

Property Type / options
Collapsed False · True

Sidebar navigation row; collapsed = icon only.

Variants: 6

Property Type / options
Label text
Icon swap instance swap (icon)
Badge boolean (off)
Chevron boolean (off)
Collapsed False · True
State Default · Hover · Active
import { AppHeader, SidebarNavigation, NavItem } from '@stanvision/atomus-react';
<SidebarNavigation header={<Logo />} footer={<NavItem label="Settings" href="/settings" />}>
<NavItem label="Home" href="/" icon={<HomeIcon />} active />
<NavItem label="Projects" href="/projects" badge={12} />
</SidebarNavigation>

AppHeader (top bar), SidebarNavigation (280px, or a 72px rail) and NavItem rows.

Full types and defaults are in React API at the end of the page.

  • NavItem — label, href, icon, badge, chevron, active (sets aria-current="page"), collapsed (icon only, label as tooltip and accessible name).
  • SidebarNavigation — header, children (NavItems), footer, collapsed.
  • AppHeader — brand, nav, actions; the nav hides below 768px, so pair it with a menu button.

Don’t

  • Don’t mix a sidebar and a header nav with the same links.

From the Figma guidelines.

Do

  • Use for apps without a sidebar, or for global search, notifications and the account menu.

Forbidden

  • Never put page-level actions in the app header — use Page header.

Do

  • Keep 5–8 top-level items.
  • Highlight the current page.
  • Use Collapsed on small screens.

Forbidden

  • Never nest navigation more than two levels.
  • Never mix icon styles.
  • Never put primary actions in the navigation.

Generated from react/src/components by scripts/gen-react-api.mjs — the same tables agents read in guidelines/components/navigation.md.

Use only these props; anything else is not part of the API.

Figma: App header — top navigation bar for apps.

import { AppHeader } from '@stanvision/atomus-react'; — source: react/src/components/Navigation.tsx

Prop Type Default Description
brand ReactNode — Logo or product name
nav ReactNode — Primary links (NavItem or anchors)
actions ReactNode — Right side: search, notifications, avatar

Also accepts every native HTML attribute (id, role …).

Figma: Sidebar navigation (280px, or a 72px rail when collapsed).

import { SidebarNavigation } from '@stanvision/atomus-react'; — source: react/src/components/Navigation.tsx

Prop Type Default Description
header ReactNode — Logo or workspace switcher at the top
children ReactNode required NavItems
footer ReactNode — Pinned at the bottom: secondary links, user card
collapsed boolean — Figma: Collapsed — 280px or a 72px rail
aria-label string — Accessible name.

Also accepts every native HTML attribute (id, role …).

Figma: Nav item. Renders a link; pass href (or onClick).

import { NavItem } from '@stanvision/atomus-react'; — source: react/src/components/Navigation.tsx

Prop Type Default Description
label string required Figma: Label
icon ReactNode — Figma: Icon swap
badge ReactNode — Figma: Badge — a count or short label after the text
chevron boolean — Figma: Chevron — marks an item with children
active boolean — Figma: State=Active
collapsed boolean — Figma: Collapsed — icon only, label becomes the tooltip and accessible name

Also accepts every native <a> attribute (href, target, onClick …).