Skip to content
SENVENLI UI

Page header

An app page's header bar: menu button on small screens, the page title and its actions.
A page's title and actions
import {
  PageHeader,
  PageHeaderBar,
  PageHeaderProvider,
} from "@senvenli/react/navigation";

Examples

A detail page

Breadcrumbs above the title say where the page sits.

In the shell's bar

Under a provider, the page's header shows in PageHeaderBar, outside the content that scrolls.

Guidelines

When to use it

  • Titling a page inside an app shell with a sidebar.

Use something else when

  • A public site needs brand, links and actions in one top bar. Navbar
  • A title alone, without actions or a menu button. Heading

Accessibility

Built in

  • The menu button is named "Open menu" and opens the sidebar panel.

You provide

  • A page title.

API reference

PageHeader

titleRequired
React.ReactNode

The page's name; the page's one h1.

description
React.ReactNode

One line under the title.

breadcrumbs
readonly BreadcrumbItem[]

Where the page sits, above the title (a detail page under its list).

actions
React.ReactNode

The page's actions: filters, a search field, one primary button.

PageHeaderBar

menuLabelRequired
string

The menu button's name ("Open menu"); it opens the Sidebar, which is a panel under 1024px.

onMenuPressRequired
() => void

PageHeaderProvider

childrenRequired
React.ReactNode