Skip to content

PageHeader ​

PageHeader is the head of a page: a trail of links, the title and a note.

When to use ​

Use it as the head of a Page. The only control it holds is a borderless icon button beside the title (to rename, or to open a menu). The head of a part of the page is a Section.

Props ​

PropDefaultDescription
titlerequiredThe title (h1)
noteOne sentence under the title
crumbsThe trail of links above the title (a snippet)
titleEndAn icon button beside the title (a snippet)

Contract ​

PageHeader is text and has no height of its own: the trail (caption, muted) is gap-md above the title, and the note (caption) gap-xs below it. The title stays on one line and ends with an ellipsis when it does not fit; the full text shows on hover. The button of titleEnd is the end of the title's Text: it takes width but no height and is centred on the ink of the title, so that the title's line is as tall with it as without it. The Page holds the distance to the content.

Example ​

PageHeader

Released under the Apache-2.0 license.