ZUI

Search documentation

Find a page or a heading.

Panel header

The top strip of a side panel, one or more rows of a title and trailing actions over a bottom border.

Installation

bash

The CLI writes components/layout/panel-header.tsx and installs Utils.

Usage

tsx
tsx

It paints no background, so it takes its panel's own (usually bg-card). Stack a second PanelHeaderRow for a header with a second line, such as a tab strip.

Composition

text

API reference

PanelHeader

Takes every prop of React Native's View. The top strip of a side panel: one or more PanelHeaderRows over a bottom border in the border colour.

PanelHeaderRow

Takes every prop of React Native's View. One fixed-height row of the header, as high as the style's row: 40px in Vega, 36px in Lyra and Nova.

PanelHeaderTitle

Takes every prop of React Native's View. The row's growing leading part: the title and anything inline with it. Its text goes in a Text.

PanelHeaderActions

Takes every prop of React Native's View. The row's trailing buttons; never shrinks.