Skip to content
Okaapiأوكابي
Framework for the code
Theme
Okaapi on GitHub

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.

Use it in Angular
import { StatusDotComponent } from '@okaapi-ui/angular';

Tones

OnlineBusyDownSyncingOffline
Angular
<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

متصل
Angular
<ui-status-dot tone="success">متصل</ui-status-dot>

When to use something else

If you needUse
A status that stands out in a table row, such as PaidBadge
A message about the statusAlert

Inputs

NameTypeDefaultWhat it does
tone'neutral' | 'info' | 'success' | 'warning' | 'danger''neutral'Colour of the dot. The words still say the status.
contenttext — 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.