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