HeaderNavigation

A top navigation bar for pages with back button, title, and action icons, supporting mobile and desktop breakpoints.

Installation

npx chilli@latest add page-navigation

Default

Profile
Settings
Activity

States

Default (transparent)

Default

With border

With Border

Scrolled (opaque background)

Scrolled

Custom Actions

Custom Actions
No Back

API Reference

PageNavigation

PropTypeDefaultDescription
titlestring"title"The title text displayed in the center.
variant"mobile" | "desktop" | "auto""auto"The breakpoint variant. Auto adapts based on screen size.
borderbooleanfalseWhether to show a bottom border.
scrolledbooleanfalseWhether to show the scrolled state with opaque background.
showBackbooleantrueWhether to show the back button.
onBack() => voidCallback when the back button is clicked.
actionsReactNodeShare + Settings iconsCustom action elements for the right side.