PageHeader
The top of a page: a headline, a title, a description and links.
On this page
Examples
Header with links
The title is the main heading of the page by default; set HeadingLevel when it sits under another heading.
Changelog
What shipped this month
Every release, with the fixes and the features that came with it.
Razor
<div class="w-full rounded-lg border border-(--klyroo-border) bg-(--klyroo-bg) px-6">
<KlyPageHeader Headline="Changelog" Title="What shipped this month" HeadingLevel="3"
Description="Every release, with the fixes and the features that came with it."
Links="_links" />
</div>
@code {
private readonly PageLinkItem[] _links =
[
new("Subscribe", "/docs/installation") { Icon = "bell", Color = KlyColor.Neutral },
new("All releases", "/docs/installation") { Icon = "list", Color = KlyColor.Neutral, Variant = ButtonVariant.Outline },
];
}API
KlyPageHeader
Header of a page with a headline, a title, a description and links.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
Class |
string |
Classes added to the root element, merged last so they win over the theme. | |
Description |
string |
Secondary text of the page header, shown under or next to its title. | |
HeadingLevel |
int |
1 |
Level of the title heading, 1 to 6: 1 by default, the main heading of the page. A page has one h1: when a KlyPageHeader and a KlyPageHero share a page, or either sits under another h1, set this to 2 on the secondary one. |
Headline |
string |
Small label above the title. | |
Links |
IReadOnlyList |
Links rendered as buttons under the description. | |
Title |
string |
Title of the page header. | |
Ui |
PageHeaderUi |
Per-instance class overrides of the slots of the page header, see PageHeaderUi . They are merged after the theme and the Class parameter wins on the root slot. |
Slots
| Name | Type | Description |
|---|---|---|
ChildContent |
RenderFragment |
Extra content under the links. |
Ui slots
Ui takes a PageHeaderUi with one class string per slot, merged after the theme.
| Slot | Styles |
|---|---|
Root |
Classes merged into the root slot of KlyPageHeader , after the theme and the app configuration. |
Wrapper |
Classes merged into the wrapper slot of KlyPageHeader , after the theme and the app configuration. |
Headline |
Classes merged into the headline slot of KlyPageHeader , after the theme and the app configuration. |
Title |
Classes merged into the title slot of KlyPageHeader , after the theme and the app configuration. |
Description |
Classes merged into the description slot of KlyPageHeader , after the theme and the app configuration. |
Links |
Classes merged into the links slot of KlyPageHeader , after the theme and the app configuration. |
Body |
Classes merged into the body slot of KlyPageHeader , after the theme and the app configuration. |