Components/Badge

Search documentation

Jump to any guide or component.

↑↓ move · Enter open · Esc close

Feedback · Badge

SSR NativeAccessible

Badge

A compact label for status, metadata, and short classifications.

Live previewv0.1.4
NeutralInfoActivePendingFailed
Astro
---
import { Badge } from '@charvesta/cetha';
---

<Badge tone="success">Active</Badge>

API reference

PropTypeDefaultDescription
tone'neutral' | 'info' | 'success' | 'warning' | 'danger''neutral'Sets the semantic color treatment.
classstringAdditional classes forwarded to the rendered element.

Accessibility

Do not use color as the only status signal; keep the label explicit.