Section Heading

セクションの見出し行。本物の h2〜h4 で、名前はタイトルのみ(任意の件数はその後に読み上げ)、末尾にアクションを添えます。

対応フレームワーク
  • Angular: 対応
  • Vue: 対応
  • React: 対応
  • React Native: 対応

使い方

Meetings24

Pinned3

インポート

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

API リファレンス

SoneSectionHeadingActionsDirectiveディレクティブ

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

セレクター
[soneSectionHeadingActions]

SoneSectionHeadingComponentコンポーネント

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

セレクター
sone-section-heading
入力
名前型 デフォルト
title必須string—
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