WANTED // NEXTUI
Badge
Severity badge with critical, high, medium, and accent variants. Uppercase labels for bounty threat levels and status indicators.
$
Or install the base component for free:
Live Preview
Open full demoUsage
TSX
<Badge variant="critical">Critical</Badge>Variants
<Badge variant="critical">Critical</Badge>
<Badge variant="high">High</Badge>
<Badge variant="medium">Medium</Badge>
<Badge variant="accent">Accent</Badge>
Source
TSX
import { cn } from '@/lib/utils'
interface BadgeProps {
children: React.ReactNode
variant?: 'critical' | 'high' | 'medium' | 'accent'
className?: string
}
export function Badge({ children, variant = 'accent', className }: BadgeProps): React.JSX.Element {
return (
<span
className={cn(
'badge',
variant === 'critical' && 'badge-critical',
variant === 'high' && 'badge-high',
variant === 'medium' && 'badge-medium',
variant === 'accent' && 'badge-accent',
className,
)}
>
{children}
</span>
)
}
Works withNext.js 15React 19Tailwind v4TypeScript 5
More from WANTED // NEXT
Button
Western bounty button with primary, secondary, ghost, and secondary-dark variants in three sizes. Gold accent, uppercase Rye display font, parchment textures. Renders as a Next.js Link when an href is provided.
Text
Polymorphic text component with body, caption, label, and code variants. Rye for display headings, Source Serif for body copy, western parchment palette.
Card
Bounty card with tag badge, title, and description. Dark parchment surface with severity-colored badge indicators for vulnerability and threat categories.