Section Heading
The heading row of a section: a real h2 to h4 named by its title alone (an optional count is read after it), with actions at the end.
Angular: available Vue: available React: available React Native: available
Usage
Meetings24
Pinned3
<div class="demo-stack" style="max-width: 36rem">
<sone-section-heading title="Meetings" [count]="24">
<button soneSectionHeadingActions soneBtn variant="outline" size="sm" type="button">
New meeting
</button>
</sone-section-heading>
<sone-section-heading title="Pinned" [level]="3" [count]="3" />
</div>Import
import {
SoneSectionHeadingActionsDirective,
SoneSectionHeadingComponent,
} from "@surface-one/angular/section-heading";API reference
SoneSectionHeadingActionsDirectiveDirective
`[soneSectionHeadingActions]` — controls at the end of the heading row.
SoneSectionHeadingComponentComponent
`<sone-section-heading>` — the heading row of a page section: a real `h2`–`h4` (`level`, default 2) with the `title`, an optional `count` in a secondary badge after it, and controls in `[soneSectionHeadingActions]` at the end of the row. The heading is named by its title alone (`aria-labelledby`), so a heading list reads "Meetings", not "Meetings12"; the count describes it (`aria-describedby`) and is read after the name ("Meetings, heading level 2, 12").
| Name | Type | Default |
|---|---|---|
titlerequired | string | — |
countA count in a secondary badge after the title; `null` hides it. | number | string | null | null |
levelThe heading level: 2, 3 or 4. | SectionHeadingLevel | 2 |