BLUEPRINT // NEXTUI
Badge
Technical badge for status indicators and tags in the BLUEPRINT dark engineering palette.
$
Or install the base component for free:
Live Preview
Open full demoUsage
TSX
<Badge variant="cyan">v2.4.0</Badge>Variants
<Badge variant="cyan">v2.4.0</Badge>
<Badge variant="amber">Deprecated</Badge>
<Badge variant="ghost">Stable</Badge>
<Badge variant="surface">Draft</Badge>
<Badge variant="muted">Archived</Badge>
Source
TSX
import { cn } from '@/lib/utils'
type BadgeVariant = 'cyan' | 'amber' | 'ghost' | 'surface' | 'muted'
interface BadgeProps {
variant?: BadgeVariant
className?: string
children: React.ReactNode
}
export function Badge({
variant = 'cyan',
className,
children,
}: BadgeProps): React.JSX.Element {
return (
<span className={cn('bp-badge', `bp-badge-${variant}`, className)}>
{children}
</span>
)
}
Works withNext.js 15React 19Tailwind v4TypeScript 5
More from BLUEPRINT // NEXT
Button
Technical dark-mode button with primary, secondary, and ghost variants in three sizes. Renders as a Next.js Link when an href is provided.
Card
Engineering-blueprint card with registration-mark corner accents at all four corners. Composable with any children.
Text
Polymorphic text primitive with body, caption, label, and code variants styled for the BLUEPRINT dark technical palette.