Chapter 09 Labels
Status dot
A small coloured dot before the word for a live state: online, busy, offline. The word is always there and carries the meaning; the dot lets the eye scan a long list.
import { StatusDotComponent } from '@okaapi-ui/angular';Tones
<ui-status-dot tone="success">Online</ui-status-dot>
<ui-status-dot tone="warning">Busy</ui-status-dot>
<ui-status-dot tone="danger">Down</ui-status-dot>
<ui-status-dot tone="info">Syncing</ui-status-dot>
<ui-status-dot>Offline</ui-status-dot>In Arabic
<ui-status-dot tone="success">متصل</ui-status-dot>When to use something else
Inputs
| Name | Type | Default | What it does |
|---|---|---|---|
tone | 'neutral' | 'info' | 'success' | 'warning' | 'danger' | 'neutral' | Colour of the dot. The words still say the status. |
content | text | — | Required in practice: the word for the status. |
Keyboard and screen readers
- The word is always there and carries the meaning; the dot is not read.