Badge
A small mark for a status or label.
neutralsuccesswarningdangerinfo
successwarningdangerinfo
import { Badge } from '@rajatweb/argent'
<Badge>New</Badge>
<Badge tone="success" variant="solid">Paid</Badge>Props
| Prop | Type | Default | What it does |
|---|---|---|---|
tone | 'neutral' | 'success' | 'warning' | 'danger' | 'info' | 'neutral' | |
variant | 'soft' | 'solid' | 'soft' |
Accessibility
- The word carries the meaning, not the colour.
Do
- Use one word.
Don’t
- Make it look pressable.