Page headerPro
A project header that folds into a compact bar as the page scrolls, with breadcrumb, actions and tabs whose counts roll.
oxyn add page-headerAtlas
Agent runningThe preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- The top of a project or run page: where you are, what it is, actions, and its sections.
When not to use
- Peer views of one thing: use Tabs instead.
- Where a page sits: use Breadcrumb instead.
- The app frame: use App shell instead.
Installation
Page header is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add page-headerUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Project
A project header; scroll the body to fold it.
Atlas
Agent runningCode Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Folded
Already folded into the compact bar.
Atlas
Agent runningCode Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Plain
No status pill.
Atlas
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
PageHeader
| Prop | Type | Default | Description |
|---|---|---|---|
titlerequired | String | — | Title. |
crumbs | Vec<Crumb> | Default::default() | Path above the title. |
meta | String | Default::default() | Meta line. |
tabs | Vec<Tab> | Default::default() | Tabs (with counts). |
fold_at | f32 | 56.0 | Fold threshold px. |
height | f32 | 340.0 | Body height px. |
status | Option<String> | Default::default() | Agent status pill text. |
folded | bool | Default::default() | Start folded. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Breadcrumb, actions, tabs |
| ← → | Between tabs |
Accessibility
- Tabs use tab roles; the current crumb carries aria-current.
- The icon-only actions trigger is labelled More actions.
- Follow, Share, Copy link and Archive report through a polite status region.
From the spec
Tabs with tab roles, labelled More actions trigger, disabled items aria-disabled, polite status for results.
Motion & interaction
Folding shrinks the title and collapses crumbs and meta; tab counts roll.
Timing
| Transition | Duration | Easing | Reduced motion |
|---|---|---|---|
| Fold | 240 ms | ease.out | instant |
Responsive behaviour
- Action labels hide in the folded bar and in narrow containers.
Edge cases (spec)
Long titles ellipsize; action labels hide when folded or narrow.
Notes for AI
- Import
PageHeaderfromoxyn_dioxusand includePRIMITIVES_CSSplus the token stylesheet once. - A GPUI version exists:
PageHeaderElinoxyn_gpui. - Props to set first:
title. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.