Status Badge

The Status Badge component uses color-coded indicators to show a user's state or system condition. Commonly used in profiles to display availability such as active, away, or offline, it remains clear, accessible, and consistent across all sizes, helping users identify status instantly.

import {StatusBadgeDirective} from "@qualcomm-ui/angular/badge"

Examples

Emphasis

Use the emphasis input to convey semantic meaning with colors.

<span emphasis="neutral" q-status-badge></span>
<span emphasis="brand" q-status-badge></span>
<span emphasis="info" q-status-badge></span>
<span emphasis="success" q-status-badge></span>
<span emphasis="warning" q-status-badge></span>
<span emphasis="danger" q-status-badge></span>

Variant

The variant input controls the aspect of the badge. Two variants are available: filled (default) and outlined.

<span emphasis="neutral" q-status-badge variant="outlined"></span>
<span emphasis="brand" q-status-badge variant="outlined"></span>
<span emphasis="info" q-status-badge variant="outlined"></span>
<span emphasis="success" q-status-badge variant="outlined"></span>
<span emphasis="warning" q-status-badge variant="outlined"></span>
<span emphasis="danger" q-status-badge variant="outlined"></span>

Size

Control dimensions using the size input. Five sizes are available: xs, sm, md (default), lg, and xl.

<span q-status-badge size="xs"></span>
<span q-status-badge size="sm"></span>
<span q-status-badge size="md"></span>
<span q-status-badge size="lg"></span>
<span q-status-badge size="xl"></span>

Disabled

Set the disabled input to visually indicate that the badge is inactive.

<span emphasis="brand" q-status-badge></span>
<span emphasis="brand" q-status-badge [disabled]="true"></span>

API

q-status-badge

PropTypeDefault
The badge disabled state.
boolean
Governs the color of the status badge.
| 'neutral'
| 'brand'
| 'info'
| 'success'
| 'warning'
| 'danger'
'neutral'
Governs the size of the badge.
| 'xs'
| 'sm'
| 'md'
| 'lg'
| 'xl'
'md'
Governs the style of the status badge.
| 'filled'
| 'outlined'
'filled'
Type
boolean
Description
The badge disabled state.
Type
| 'neutral'
| 'brand'
| 'info'
| 'success'
| 'warning'
| 'danger'
Description
Governs the color of the status badge.
Type
| 'xs'
| 'sm'
| 'md'
| 'lg'
| 'xl'
Description
Governs the size of the badge.
Type
| 'filled'
| 'outlined'
Description
Governs the style of the status badge.