SectionHeader
A generic section header: an optional eyebrow label, a Heading title,
an optional muted description, and an optional right-aligned actions slot.
Typography is delegated to Heading and Text; the data-slot hooks
(section-header-eyebrow / -body / -actions) let adopters retune spacing
without forking the component.
Usage
Best practices
Renders a
<header>, which is abannerlandmark only when it is a direct child of<body>. It is built for nested/section use - don't render more than one page-levelSectionHeaderdirectly under<body>, or you'll create duplicatebannerlandmarks.Set
levelfor the document outline andsizefor visual scale independently - a visually small header can still be anh2. UsereserveEyebrowSpaceto keep an eyebrow-less header aligned beside sibling headers that have an eyebrow.Use
asto change the element (a tag); userenderonly to swap in a component (e.g. a router Link). Neverrender={<Box as=…/>}- passasdirectly.
Props
Also exports
- interface
SectionHeaderProps