Components
Badge
Use for status labels, taxonomy labels, and lightweight markers
Badge
Badge is used for short status labels and lightweight metadata.
Import
import { Badge } from "@downcity/ui";Basic Example
import { Badge } from "@downcity/ui";
export function StatusBadge() {
return <Badge variant="secondary">Running</Badge>;
}Variants
defaultsecondarydestructiveoutlineghostlink
Common Pattern
import { Badge, Card, CardContent } from "@downcity/ui";
export function AgentCard() {
return (
<Card className="max-w-sm">
<CardContent className="flex items-center justify-between">
<span>Research Agent</span>
<Badge variant="secondary">Online</Badge>
</CardContent>
</Card>
);
}Usage Notes
- Use
secondaryordestructivefor state - Use
outlinefor category labels - Do not use
Badgeas a primary action control