Skip to content
PixiKit

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
NameTypeDefaultDescription
titlestringRequiredThe page title.
subtitlestringNoneA line under the title.
breadcrumbsMastheadCrumb[][]The trail to this page: the full trail when wide, one Back link to the parent when narrow.
metaMastheadMeta[][]Small facts under the title, such as an owner or a date.
statusMastheadStatusNoneA badge with a dot after the title.
avatar{ name: string; src?: string }NoneA round leading visual: a picture, or the initials of the name.
iconReactNodeNoneA leading icon in a tile; used when there is no avatar.
actionsMastheadAction[][]The buttons; the ones that do not fit move into a More menu, lowest priority first.
tabsMastheadTab[][]Tabs under the heading.
tabstringNoneThe open tab's id, when you hold the state.
defaultTabstringNoneThe tab open at first, when the tabs hold the state.
onTabChange(id: string) => voidNoneCalled with the id of the tab the user opens.
stickybooleanfalseKeeps the masthead at the top and condenses it into a slim bar once the page scrolls past it.
scrollContainerRefObject<HTMLElement | null>NoneThe element that scrolls the page, when it is not the window.
dividerbooleanfalseDraws a line under the masthead.
level1 | 21The heading element: 1 is an h1, 2 an h2.
loadingbooleanfalseShows a skeleton for the title, meta and actions.
portalbooleantrueRenders the More menu in a portal on the page body; turn off to keep it inline.
classNamestringNone

More headings blocks in Pro

View all

Related