SectionHeader
Since 0.1.0-alpha.24The top of a section of a landing or marketing page: an optional eyebrow, a heading and a sentence under it, centered over the section's content by default. For the top of an app page, with actions at the end, use PageHeader.
Eyebrow, title and description
A section header introduces a section of a landing page. Set Title and Description, and Eyebrow for a short line above them. It's an h2 by default; set TitleLevel for another level.
Static
Preview
Plans that grow with your team
Start free. Upgrade when you need more people, more projects or single sign-on.
Code
@* The intro of a pricing section, centered over the plans below it. *@
<SectionHeader Eyebrow="Pricing" Title="Plans that grow with your team"
Description="Start free. Upgrade when you need more people, more projects or single sign-on." Grow />Add this example to a page with the izzy CLI:
izzy add component SectionHeader --at <file>:<line>Alignment
Centered by default. Over content that starts at the edge on phones, such as a list of features, set Align per breakpoint, so the section has one left edge on a narrow screen.
Static
Preview
Everything you need to run your work
The parts every app needs, built in and ready the day you start.
Code
@* The intro of a features section: at the edge on phones, like the list under it, and centered
from 768px up. Resize the window to see it move. *@
<SectionHeader Title="Everything you need to run your work"
Description="The parts every app needs, built in and ready the day you start."
Align="new() { Base = TextAlign.Start, Md = TextAlign.Center }" Grow />Mode support
| Feature | Static | Interactive |
|---|---|---|
| Everything | Yes | Yes |
Static: static server-side rendering, with no circuit and no WebAssembly. Interactive: Server, WebAssembly or Auto.
Accessibility
Parameters
| Prop | Type | Default |
|---|---|---|
TitleThe heading, such as "Everything you need to run your work". | string | Required |
TitleLevelThe heading level of Title, 1 to 6. | int | 2 |
TitleIdThe heading's id, for the section's aria-labelledby. | string? | |
DescriptionA muted sentence under the heading: what the section is about. | string? | |
EyebrowA short pill above the heading in the accent color, such as "Pricing". | string? | |
AlignWhere the text sits, per breakpoint. | Responsive<TextAlign> | Center |
SizeThe heading and sentence size: ControlSize.Sm (20px and 16px) for a section in a card, ControlSize.Md (36px and 18px, 30px and 16px on phones; the default), ControlSize.Lg (48px, 36px on phones) for a page made of one section. | ControlSize | ControlSize.Md |
ChildContentAnything under the sentence, such as a link or buttons. | RenderFragment? |
Plus 27 surface props, 17 item props and 4 common props.
Full APISee also
- Section: renders a full-width band of a page, such as a hero.
- PageHeader: shows a page's title, its status, what it's for, and its actions.
- Heading: renders headings 1 to 6, with fluid sizes and section links.
- Blocks that use it: Blog articles, Contact, FAQ, Features, Pricing, Sign-up, Team.