Page Masthead
The top of a page: breadcrumbs, title, status, meta, actions and tabs. Actions that do not fit move into a More menu, and a sticky masthead condenses into a slim bar once the page scrolls past it.
pixikit.com/docs/app-ui/headings/page-masthead
Customize
Sticky
Divider
Level
Loading
Portal
Props
19| Name | Type | Default | Description |
|---|---|---|---|
title | string | Required | The page title. |
subtitle | string | None | A line under the title. |
breadcrumbs | MastheadCrumb[] | [] | The trail to this page: the full trail when wide, one Back link to the parent when narrow. |
meta | MastheadMeta[] | [] | Small facts under the title, such as an owner or a date. |
status | MastheadStatus | None | A badge with a dot after the title. |
avatar | { name: string; src?: string } | None | A round leading visual: a picture, or the initials of the name. |
icon | ReactNode | None | A leading icon in a tile; used when there is no avatar. |
actions | MastheadAction[] | [] | The buttons; the ones that do not fit move into a More menu, lowest priority first. |
tabs | MastheadTab[] | [] | Tabs under the heading. |
tab | string | None | The open tab's id, when you hold the state. |
defaultTab | string | None | The tab open at first, when the tabs hold the state. |
onTabChange | (id: string) => void | None | Called with the id of the tab the user opens. |
sticky | boolean | false | Keeps the masthead at the top and condenses it into a slim bar once the page scrolls past it. |
scrollContainer | RefObject<HTMLElement | null> | None | The element that scrolls the page, when it is not the window. |
divider | boolean | false | Draws a line under the masthead. |
level | 1 | 2 | 1 | The heading element: 1 is an h1, 2 an h2. |
loading | boolean | false | Shows a skeleton for the title, meta and actions. |
portal | boolean | true | Renders the More menu in a portal on the page body; turn off to keep it inline. |
className | string | None |