Navbar
Organism
Topbars with a brand, navigation links, and an action button. Used as the primary app-level navigation.
Playground
Every control sets a real prop of NavbarProps. The JSX below updates as you go.
Web
iOS
Android
JSX · NavbarProps
Variants
5 examples from src/organisms/navbars/navbars.md, each rendered live from its own JSX.
Anatomy
1
Bar
2
Brand
3
Links
4
Active link
5
Actions
Dimmed parts appear only in some states or variants.
Props
22 props on NavbarProps, grouped as they are declared in source. Required props are marked *.
Accessibility and keyboard
Keyboard
Tab
Moves between links
Enter
Follows the link
Semantics
Roles
link
States
selected
ARIA on web
aria-current
Below the platform minimum, the touch area grows to 44 pt on iOS and 48 dp on Android without moving the layout.
Platform skins
The playground's props on each platform: same tree, native shapes, type and touch sizes.
Usage
The bar measures its own width: at and below the sm breakpoint (640) the links row automatically collapses into a menu button opening a dropdown of the same links (the active one checkmarked), so links never clip off a phone screen; active and onSelect keep their contract in both renderings. The menu button leads the bar, ahead of the logo and brand, where Material 3's top app bar puts its navigation icon. Pass scrolls to keep every link at every width instead: the bar's content row then pans sideways inside the bar, with no scroll indicator, and the links never fold into the menu. onMenu still replaces the links when both are passed.
On the web the bar is the v4 hand-off's: 56px tall with a 16px gutter, 32px capsule links in the interface face, the active one (and a hovered one) on the secondary fill. floating lifts it as a pill on the stronger hairline with the md shade. On iOS and Android the bar keeps the platform's own navigation bar and top app bar shape.
In glass mode the active link paints a control-layer pane (iOS keeps its inactive capsules and carries the brand fill as glass, web and Android carry their tinted tile), and the collapsed menu is Dropdown's dense-layer glass card under the hamburger. Solid mode keeps the skin's own active tile.
Tokens
Read from the playground render. Values follow the scheme and the ion hue.
--bls
--bw
--f-dp
--fd
--ft
--ion
--ion-fg
--ln
--sf3
--tx
--tx2