- Label
- Icon label
- Field
- Form
- Frontmatter form
- Questionnaire
- Input
- Input group
- Input OTP
- Password input
- Password strength
- Code input
- Number field
- Tag input
- Textarea
- Checkbox
- Radio group
- Language toggle group
- Emoji appearance toggle group
- Emoji picker
- Avatar picker
- AI provider picker
- Select
- Native select
- Combobox
- Language combobox
- Slider
- Calendar
- Switch
- Alert
- Avatar
- Badge
- Card
- AI provider card
- Model info card
- Model list
- Empty
- Item
- Tree item
- File tree
- Icon media
- File type icon
- Font preview
- Image preview
- Kbd
- Table
- Data table
- Data table column header
- Chart
- Code Block
- Code card
- Markdown view
- Attachment
- Bubble
- Marker
- Message
- Chat message
- Chat suggestion item
- Message scroller
- Trace
- Progress
- Spinner
- Sonner
- Toast
- Unsaved changes toolbar
- Unsaved indicator
- Status indicator
- Permission card
- Separator
- Skeleton
- Animated grid pattern
- Meteors
The top strip of a side panel, one or more rows of a title and trailing actions over a bottom border.
Installation#
pnpm dlx shadcn@latest add @zui/panel-headerThe CLI writes components/layout/panel-header.tsx and installs Utils.
Usage#
import { PanelHeader, PanelHeaderActions, PanelHeaderRow, PanelHeaderTitle } from '@/components/layout/panel-header';<PanelHeader>
<PanelHeaderRow>
<PanelHeaderTitle>
<Text>Properties</Text>
</PanelHeaderTitle>
<PanelHeaderActions>
<Button variant="ghost" size="icon-sm" aria-label="Collapse panel">
<Icon as={PanelLeftClose} />
</Button>
</PanelHeaderActions>
</PanelHeaderRow>
</PanelHeader>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#
PanelHeader
`-- PanelHeaderRow
|-- PanelHeaderTitle
`-- PanelHeaderActions
`-- ButtonAPI 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.