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.

tsx

Installation

bash

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

Renders a div and takes every prop a div takes. The top strip of a side panel: one or more PanelHeaderRows over a bottom border; it paints no background, so it takes its panel's own (usually bg-card). It sets data-slot="panel-header".

PanelHeaderRow

Renders a div and takes every prop a div takes. One fixed-height row of the header. It sets data-slot="panel-header-row".

PanelHeaderTitle

Renders a div and takes every prop a div takes. The row's growing leading part: the title and anything inline with it. It sets data-slot="panel-header-title".

PanelHeaderActions

Renders a div and takes every prop a div takes. The row's trailing buttons; never shrinks. It sets data-slot="panel-header-actions".