On this page
@addTagHelper *, Webority.Ui.RazorExamples
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
Plain, with no period control
Good afternoon, Ravi
Greeting alone
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
updated-date-time: the updated time, in IST
updated-date-time set
Hello
content: the period slot, or plain
no content (plain)
Hello
with a period control
Hello
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.
5 props. The 3 most used come first.
Used on most screens 3 props
| Prop | Type | Default | Description |
|---|---|---|---|
| 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
| Prop | Type | Default | Description |
|---|---|---|---|
| (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.