Compose flexible section headers with title, description, and action buttons. Perfect for dashboard pages, settings panels, and content sections where you need consistent header patterns.
Built with compound components for maximum flexibility—mix and match Content, Title, Description, Actions, and Tabs to create any section header layout.
Installation
shellUsage
tsxAnatomy
SectionHeader is a compound component with these parts:
tsxProps
SectionHeader.Root
Layout container for section header content. Extends Kookie UI's Flex component.
Responsive Layout Type:
tsxAll other Flex props from Kookie UI are supported.
SectionHeader.Content
Container for title and description. Groups them on the left side in inline layout.
All other Flex props from Kookie UI are supported.
SectionHeader.Title
Section heading. Extends Kookie UI's Heading component.
All other Heading props from Kookie UI are supported.
SectionHeader.Description
Supporting text. Extends Kookie UI's Text component.
All other Text props from Kookie UI are supported.
SectionHeader.Actions
Container for action buttons. Positioned on the right in inline layout.
All other Flex props from Kookie UI are supported.
SectionHeader.Tabs
Container for tabs. Renders below the header row. Note: When using tabs, don't set separator={true} as tabs have a built-in separator.
All Flex props from Kookie UI are supported.
Examples
Basic Section Header
Simple inline layout with title and actions:
tsxWith Description
Add context with a description:
tsxWith Separator
Add a separator when not using tabs:
tsxWith Tabs
Add tabs for section navigation (no separator needed):
tsxStacked Layout
Vertical layout for mobile or narrow containers:
tsxResponsive Layout
Stacked on mobile, inline on desktop:
tsxMultiple Actions
Multiple buttons in the actions slot:
tsxLayout Patterns
SectionHeader supports two primary layout modes:
Inline (Default)
Horizontal layout with content on left, actions on right:
- Content (Title + Description) aligned left
- Actions aligned right
- Best for: Dashboard sections, settings pages, list headers
Stacked
Vertical layout where content flows top-to-bottom:
- Content above
- Actions below
- Best for: Mobile layouts, narrow containers, modal headers
Separator vs Tabs
Use the separator prop when you need a visual divider but don't have tabs:
tsxAccessibility
SectionHeader provides semantic HTML structure:
Semantic HTML
SectionHeader.Titleuses<h2>by default (customizable withasprop)- Maintain proper heading hierarchy in your page
Keyboard Navigation
- All interactive children (buttons, tabs) are keyboard accessible
- Standard tab navigation applies
Changelog
Added
- Initial release with compound component architecture
SectionHeader.Root,SectionHeader.Content,SectionHeader.Title,SectionHeader.Description,SectionHeader.Actions,SectionHeader.Tabscomponentslayoutprop withstackedandinlinemodesseparatorprop for built-in divider support- Responsive layout support