Skip to content
Razor catalogue

On this page

@addTagHelper *, Webority.Ui.Razor

Examples

The greeting, the day and the updated time at the left, the period control in the slot at the right.

Greeting, date and updated time

Good morning, Asha

Tue 24 Nov 2026Updated 09:05 am IST

Show code
<app-dashboard-header greeting="Good morning, Asha" date="@day" updated-date-time="@updated">
    <app-button variant="Outline">Last 30 days</app-button>
</app-dashboard-header>
Plain, with no period control

Good afternoon, Ravi

Tue 24 Nov 2026

Show code
<app-dashboard-header greeting="Good afternoon, Ravi" date="@day" />
Greeting alone

Hello

Show code
<app-dashboard-header greeting="Hello" />

Every option

Every prop, one cell each.

greeting: the heading text

greeting

Good afternoon, Ravi

date: the day shown after the greeting

date omitted (default)

Hello

date set

Hello

Tue 24 Nov 2026

updated-date-time: the updated time, in IST

updated-date-time set

Hello

Updated 09:05 am IST

content: the period slot, or plain

no content (plain)

Hello

Tue 24 Nov 2026

with a period control

Hello

Tue 24 Nov 2026

Guidance

What to do, and what to avoid.

Use it when

  • A dashboard opens with a greeting for the signed-in person, the day and when the figures were last updated.
  • A dashboard needs one period control, such as Last 30 days, at the top right of its first line.

Reach for something else when

  • A page title with actions and no greeting or date. → AppPageHeader
  • A period control with no greeting or date above it. → AppSegmented

Reference

Try every prop, read the full list, and check keyboard and screen reader behaviour.

Good morning, Asha

Tue 24 Nov 2026Updated 09:05 am IST

React, generated from the controls
<AppDashboardHeader greeting="Good morning, Asha" date={new Date("2026-11-24")} updatedDateTime={new Date("2026-11-24T03:35:00Z")}><AppButton variant="outline">Last 30 days</AppButton></AppDashboardHeader>
Razor, the same props
<app-dashboard-header greeting="Good morning, Asha" date="2026-11-24" updated-date-time="2026-11-24T03:35:00Z"><app-button variant="Outline">Last 30 days</app-button></app-dashboard-header>

5 props. The 3 most used come first.

Used on most screens 3 props

PropTypeDefaultDescription
greetingdefault - string - The greeting, rendered as the header's heading (for example Good morning, Asha).
datedefault - DateOnly - The day shown after the greeting, read in India Standard Time.
updated-date-timedefault - DateTimeOffset - The moment shown as the updated time, read in India Standard Time.

Less common 2 props

PropTypeDefaultDescription
(content)default - markup - The period control, drawn in the slot at the right. Without content the header is plain.
classdefault - string - Extra class on the header element, added to the component's own.

Screen reader

3 notes
  • The greeting is the page's main heading.
  • The date and the updated time sit in one paragraph after the greeting, as plain text.
  • Under 576 px the period control drops onto its own row below the greeting, in the same reading order.