Badge

Displays a short status label. Use tones to communicate meaning.

Neutral

Success

WarningDangerInfo

Import

import { Badge } from '@aspect/react';

Tones

Dot indicator

Add dot to show a small colored circle before the label. Useful for status lists.

<Badge tone="success" dot>Running</Badge>
<Badge tone="danger" dot>Failed</Badge>

Props

| Prop | Type | Default | Description | | ------ | ----------------------------------------------------------- | ----------- | ---------------------------- | | tone | 'neutral' \| 'success' \| 'warning' \| 'danger' \| 'info' | 'neutral' | Color intent | | dot | boolean | false | Shows a dot before the label |

CSS class

<span class="mizu-badge mizu-badge--success">Active</span>

Guidelines

Do:

Don't: