This page as markdown: /app-header.md · Index for agents: /llms.txt · Everything in one file: /llms-full.txt

AppHeader

Status: stable

Mobile top bar (sticky, hidden at lg) with leading / title / actions slots on a 3-column grid that keeps the title optically centered. Grows into the top safe-area.

Keywords: app header, top bar, mobile header, chrome

Usage

Use AppHeader for compact application chrome at the top of a screen, usually with navigation, identity, and a small action set. Pass it to AppShell's header slot so screen content clears it on mobile (it is sticky and hides itself at lg).

Best practices

Props

Name Type Default Description
leading ReactNode — Leading slot — back button, create action, or menu trigger.
title ReactNode — Center slot — brand wordmark or contextual page title.
actions ReactNode — Trailing slot — account menu, action buttons.

Tokens used

background, border, foreground

Accessibility

Related

Examples

Contextual header

import { AppHeader, Button, Icon } from "@sableui/react"

<AppHeader leading={<Button size="icon" variant="ghost" aria-label="Back"><Icon name="chevron-left" /></Button>} title="Notifications" />

Choosing between AppHeader and PageHeader

import { AppHeader, AppShell, PageHeader, Region } from "@sableui/react"

// AppHeader is APP chrome — it persists across routes and holds global
// affordances (brand, search, account). One per app.
<AppShell header={<AppHeader title="Studio" />}>
  <Region max="content">Route content</Region>
</AppShell>

// PageHeader is CONTENT — it introduces the current route and scrolls away
// with it. One per page, INSIDE the region.
<Region max="content">
  <PageHeader title="Billing" description="Plans, invoices, payment methods." />
</Region>

// ✗ Putting route-specific actions in AppHeader. They then persist onto routes
//   where they mean nothing, and the header becomes a dumping ground.