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