Prodular UI

Panel header

The strip at the top of a panel: icon, title, count, status and actions in one row the height of a control, with an optional fold toggle.

npx prodular-ui add panel-header

Panel headers

With a count, live status and actions, and inside a Collapsible with a fold toggle.

Signals

128Live
Panel body

Notes

3
Three notes from the last shift.

Anatomy

<PanelHeader>  <PanelHeaderIcon><RadarIcon /></PanelHeaderIcon>  <PanelHeaderTitle>Signals</PanelHeaderTitle>  <PanelHeaderCount>128</PanelHeaderCount>  <PanelHeaderActions>    <Button variant="ghost" size="icon-xs" aria-label="Filter"><FilterIcon /></Button>  </PanelHeaderActions></PanelHeader>

Guidance

Use it when

  • The top of every pane in a Workspace, and of sidebars and inspectors.
  • PanelHeaderCount for the number of items in the pane.
  • Icon buttons in PanelHeaderActions for filtering, sorting and more.

Avoid

  • PanelHeader as a page title. Use PageHeader.
  • More than three actions. Move the rest into a DropdownMenu.
  • Long titles. The title truncates; keep it to a word or two.

Rules for AI agents

Published in llms-full.txt, the registry and the MCP server, so coding agents follow them when they build with this component.

  • Use PanelHeaderTitle with the right level for the outline: 2 under the page title, 3 inside a panel.
  • Every icon-only action needs aria-label.
  • Give PanelHeaderCount an aria-label when the number alone is ambiguous, for example "128 signals".
  • Use PanelHeaderToggle only inside a Collapsible, and pass label.

API

PanelHeader

PropTypeDefaultDescription
borderedbooleantrueDraws the bottom border.

PanelHeaderTitle

PropTypeDefaultDescription
level2 | 3 | 42Heading level.

PanelHeaderToggle

PropTypeDefaultDescription
labelstring"Toggle panel"Accessible name of the fold button.

Installation

The Prodular UI CLI adds the source to components/ui with everything it depends on. In a project that already uses shadcn/ui, the shadcn CLI installs it from the Prodular registry too. See Installation for the first setup.

npx prodular-ui add panel-header# or, with the registry in components.jsonnpx shadcn@latest add @prodular/panel-header