HAIKU // NEXTUI
Badge
Minimalist badge for tags and labels in the HAIKU Japanese-inspired light palette.
$
Or install the base component for free:
Live Preview
Open full demoUsage
TSX
<Badge variant="red">Featured</Badge>Variants
<Badge variant="ink">Collection</Badge>
<Badge variant="red">Featured</Badge>
<Badge variant="parchment">Archive</Badge>
<Badge variant="ghost">Draft</Badge>
Source
TSX
import { cn } from '@/lib/utils'
type BadgeVariant = 'ink' | 'red' | 'parchment' | 'ghost'
interface BadgeProps {
variant?: BadgeVariant
className?: string
children: React.ReactNode
}
const VARIANT_CLASSES: Record<BadgeVariant, string> = {
ink: 'haiku-badge-ink',
red: 'haiku-badge-red',
parchment: 'haiku-badge-parchment',
ghost: 'haiku-badge-ghost',
}
export function Badge({
variant = 'ink',
className,
children,
}: BadgeProps): React.JSX.Element {
return (
<span className={cn('haiku-badge', VARIANT_CLASSES[variant], className)}>
{children}
</span>
)
}
Works withNext.js 15React 19Tailwind v4TypeScript 5
More from HAIKU // NEXT
Button
Japanese-inspired light-mode button with primary, secondary, and ghost variants in three sizes. Renders as a Next.js Link when an href is provided.
Card
Composable light card with header, body, and footer sub-components in the HAIKU minimal Japanese aesthetic.
Pullquote
Serene editorial blockquote with a ruled left accent, typographic quote marks, and an optional attribution citation.
Seal
Circular hanko-style seal displaying a kanji character with an optional label. Available in red and neutral variants at configurable sizes.
Text
Polymorphic text primitive with body, caption, label, and code variants styled for the HAIKU minimal Japanese light palette.