Status Dot

语义色调的小圆形状态点,可选脉动效果和无障碍名称。

可用框架
  • Angular: 可用
  • Vue: 可用
  • React: 可用
  • React Native: 可用

用法

Running Following 2

导入

ts
import {
  SoneStatusDotComponent,
} from "@surface-one/angular/status-dot";

API 参考

SoneStatusDotComponent组件

`<sone-status-dot>` — a small round status mark. Decorative by default (`aria-hidden`); give it a `label` when the dot is the only thing that says the status, and it becomes `role="img"` with that name.

选择器
sone-status-dot
输入
名称类型 默认值
toneStatusDotTone"muted"
sizeStatusDotSize"default"
pulse

Pulses while something is going on; still under `prefers-reduced-motion: reduce`.

booleanfalse
label

The accessible name; leave it out when text next to the dot already says the status.

string | nullnull