Section Heading

La ligne de titre d’une section : un vrai h2 à h4 nommé par son seul titre (le compteur facultatif est lu après), avec des actions à la fin.

Disponible pour
  • Angular: disponible
  • Vue: disponible
  • React: disponible
  • React Native: disponible

Utilisation

Meetings24

Pinned3

Importation

ts
import {
  SoneSectionHeadingActionsDirective,
  SoneSectionHeadingComponent,
} from "@surface-one/angular/section-heading";

Référence de l’API

SoneSectionHeadingActionsDirectiveDirective

`[soneSectionHeadingActions]` — controls at the end of the heading row.

Sélecteur
[soneSectionHeadingActions]

SoneSectionHeadingComponentComposant

`<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").

Sélecteur
sone-section-heading
Inputs
NomType Par défaut
titleobligatoirestring—
count

A count in a secondary badge after the title; `null` hides it.

number | string | nullnull
level

The heading level: 2, 3 or 4.

SectionHeadingLevel2