On this page
@addTagHelper *, Webority.Ui.RazorClosing band
Use the closing band at a page's foot, with one clear next step and at most one outline button.
Centred, two buttons
Left-aligned
Left-align the copy and buttons when the band sits in a column and its text should share the page's left edge.
Left-aligned on a muted band
Filled band
Fill the band with the brand colour for the one closing call a page leads to. Buttons sit at the end on wide screens.
Filled band
Every option
Every value of every prop, one cell each.
title
title="Run your next payroll with us": the heading, required
Run your next payroll with us
actions
content: a primary and an outline button (React: actions={buttons})
Run your next payroll with us
no inner content: no buttons (React: actions not set)
Run your next payroll with us
as: all six
as="h1"Run your next payroll with us
as="h2" (default)Run your next payroll with us
as="h3"Run your next payroll with us
as="h4"Run your next payroll with us
as="h5"Run your next payroll with us
as="h6"Run your next payroll with us
eyebrow
eyebrow="Payroll": a short label above the heading
Payroll
Run your next payroll with us
subtitle
subtitle="Set up in a day.": a sentence under the heading
Run your next payroll with us
Set up in a day.
align: both
align="start"Run your next payroll with us
align="center" (default)Run your next payroll with us
variant: all three
variant="default" (default)Run your next payroll with us
variant="muted"Run your next payroll with us
variant="band"Run your next payroll with us
id
id="closing-demo": labels the section by its heading, no visible change
Run your next payroll with us
className
class="cta-demo" (React: className): extra classes on the root element, no visible change
Run your next payroll with us
Guidance
What to do, and what to avoid.
Use it when
- The last section of a landing page.
- Between long sections, to offer the next step.
Reach for something else when
- A notice about the page or the account. → AppBanner
Reference
Try every prop, read the full list, and check keyboard and screen reader behaviour.
8 props. The 4 most used come first.
Used on most screens 4 props
| Prop | Type | Default | Description |
|---|---|---|---|
| titledefault - | string | - | The section's heading. Required. |
| asdefault h2 | h1 | h2 | h3 | h4 | h5 | h6 | h2 | The heading element. |
| eyebrowdefault - | string | - | A short label above the heading. |
| subtitledefault - | string | - | A sentence or two under the heading. |
Less common 4 props
| Prop | Type | Default | Description |
|---|---|---|---|
| aligndefault center | start | center | center | Where the copy and buttons sit in the panel. |
| variantdefault default | default | muted | band | default | The section's background around the panel, or band for a filled brand-colour strip. |
| iddefault - | string | - | Labels the section by its heading ({id}-title). |
| (content)default - | markup | - | The buttons, usually a primary <app-button> and an outline one. |
Screen reader
3 notes- The section is labelled by its heading, through aria-labelledby, when an id is passed.
- The title is a real heading element chosen by as, so set it to fit the page outline.
- The buttons are the caller's own, so each keeps its native button or link behaviour.