Pagehead
Pagehead denotes the title and start of a given section.
On this page
v0.25.1BetaNot reviewed for accessibility
Description
Use Subhead as the start of a section. The :heading slot will render an <h2> font-sized text.
- Optionally set the 
:descriptionslot to render a short description and the:actionsslot for a related action. - Use a succinct, one-line description for the 
:descriptionslot. For longer descriptions, omit the description slot and render a paragraph below theSubhead. - Use the actions slot to render a related action to the right of the heading. Use Button or Link.
 
Accessibility
The :heading slot defaults to rendering a <div>. Update the tag to a heading element with the appropriate level to improve page navigation for assistive technologies.
Learn more about best heading practices (WAI Headings)
Arguments
| Name | Default | Description | 
|---|---|---|
spacious  | 
  | BooleanWhether to add spacing to the Subhead.  | 
hide_border  | 
  | BooleanWhether to hide the border under the heading.  | 
system_arguments  | N/A  | Hash | 
Examples
Slots
heading
The heading
| Name | Default | Description | 
|---|---|---|
tag  | N/A  | SymbolOne of   | 
danger  | N/A  | BooleanWhether to style the heading as dangerous.  | 
system_arguments  | N/A  | Hash | 
actions
Actions
| Name | Default | Description | 
|---|---|---|
system_arguments  | N/A  | Hash | 
description
The description
| Name | Default | Description | 
|---|---|---|
system_arguments  | N/A  | Hash |