RRigdesign system
Navigation

Navbar

Primary navigation across a platform: sidebar, collapsed rail and nav items.

Anatomy

No interactive example yet. The anatomy for this component lives in the Figma file; the tables below describe it.

States

DefaultHoveredActiveDisabled

Anatomy

Navbar anatomy
#PartDescriptionPresence
1ContainerSidebar, desktop and collapsed widthsRequired
2BrandLogo link to homeRequired
3Nav itemsLinks with icon and labelRequired
4Collapse controlButton with aria-expandedOptional

Specifications

LayoutSidebar with desktop and collapsed widths
TokensNative CSS variables

Interaction

Keyboard
KeyResult
TabEach link in order
EnterFollows the link
Skip linkFirst tab stop jumps past the navigation
Pointer and touch
TriggerResponse
HoverItem tint
CollapseWidth animates in 300ms; labels become tooltips

Accessibility

role · navigation

1.3.1Info and Relationships2.4.1Bypass Blocks2.4.7Focus Visible4.1.2Name, Role, Value
Requirements
RequirementHow Rig meets it
Landmark<nav aria-label="Main">
Currentaria-current="page" on the active link
CollapsedIcons keep their text as aria-label and tooltip
Skip linkA visible-on-focus link to main content (WCAG 2.4.1)

Read the matching WAI pattern ↗

Usage

Do and don’t
DoDon’t
Keep the order stable across pagesDo not use role=menu for site navigation
Do not rely on icons alone