Status Dot
Un petit point d’état rond dans une teinte sémantique, avec pulsation et nom accessible facultatifs.
Disponible pour
Angular: disponible Vue: disponible React: disponible React Native: disponible
Utilisation
Running Following 2
<div class="demo-stack">
<div class="demo-row" style="gap: var(--space-4)">
<sone-status-dot />
<sone-status-dot tone="live" />
<sone-status-dot tone="success" />
<sone-status-dot tone="warning" />
<sone-status-dot tone="destructive" />
<sone-status-dot tone="accent" />
</div>
<div class="demo-row">
<span class="demo-row" style="gap: var(--space-2)">
<sone-status-dot tone="live" pulse /> Running
</span>
<span class="demo-row" style="gap: var(--space-2); color: var(--success-text)">
<sone-status-dot tone="current" size="sm" /> Following
</span>
<span soneBadge variant="outline">
<sone-status-dot tone="warning" size="sm" label="Needs you" /> 2
</span>
</div>
</div>Importation
import {
SoneStatusDotComponent,
} from "@surface-one/angular/status-dot";Référence de l’API
SoneStatusDotComponentComposant
`<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.
| Nom | Type | Par défaut |
|---|---|---|
tone | StatusDotTone | "muted" |
size | StatusDotSize | "default" |
pulsePulses while something is going on; still under `prefers-reduced-motion: reduce`. | boolean | false |
labelThe accessible name; leave it out when text next to the dot already says the status. | string | null | null |