Status & Feedback
$
Badge
FREEColored inline labels and tags for terminal output. Includes preset styles, outline badges, dot indicators, and fully custom colors.
static output5 presetslabels
# Preview
BOOTING PREVIEW
# Usage
import { Badge, fg, bg } from '@taracod/termui';
console.log(Badge.success('PASS'));
console.log(Badge.error('FAIL'));
console.log(Badge.warning('WARN'));
console.log(Badge.info('INFO'));
console.log(Badge.neutral('N/A'));
console.log(Badge.outline('v2.1.0', fg.blue));
console.log(Badge.status('Online', fg.green));
console.log(Badge.custom('DEPLOY', fg.black, bg.brightMagenta));# API
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | required | Badge label text |
| preset | BadgePreset | success | success, error, warning, info, neutral |
| rounded | boolean | true | Add padding for pill-like appearance |
| bold | boolean | true | Render label in bold terminal style |