Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

SectionHeader

Since 0.1.0-alpha.24
Introduces a section of a landing page: an eyebrow, a heading and a sentence.

The 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

Pricing

Plans that grow with your team

Start free. Upgrade when you need more people, more projects or single sign-on.

Code

Usage.razor
@* 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:

bash
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

Align.razor
@* 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

What works in each mode, SectionHeader
FeatureStaticInteractive
EverythingYesYes

Static: static server-side rendering, with no circuit and no WebAssembly. Interactive: Server, WebAssembly or Auto.

Accessibility

  • Title is a heading, an h2 by default, so the page's outline goes h1, then a heading per section.
  • Give the section a name with aria-labelledby pointing at TitleId.
  • The eyebrow is a tag before the heading, read before it.

Parameters

SectionHeader parameters
PropTypeDefault
TitleThe heading, such as "Everything you need to run your work".stringRequired
TitleLevelThe heading level of Title, 1 to 6.int2
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.ControlSizeControlSize.Md
ChildContentAnything under the sentence, such as a link or buttons.RenderFragment?

See also

Connection lost

Rejoining the server…