ALOHA // NEXTUI
Badge
Tropical badge with coral, turquoise, yellow, green, and pink variants for category tags and labels.
$
Or install the base component for free:
Live Preview
Open full demoUsage
TSX
<Badge variant="turquoise">New arrival</Badge>Variants
<Badge variant="coral">Featured</Badge>
<Badge variant="turquoise">New arrival</Badge>
<Badge variant="yellow">Best seller</Badge>
<Badge variant="green">In stock</Badge>
<Badge variant="pink">Limited</Badge>
Source
TSX
import { cn } from '@/lib/utils'
type BadgeVariant = 'coral' | 'turquoise' | 'yellow' | 'green' | 'pink'
interface BadgeProps {
children: React.ReactNode
variant?: BadgeVariant
className?: string
}
const VARIANT_CLASS: Record<BadgeVariant, string> = {
coral: 'badge--coral',
turquoise: 'badge--turquoise',
yellow: 'badge--yellow',
green: 'badge--green',
pink: 'badge--pink',
}
export function Badge({
children,
variant = 'coral',
className,
}: BadgeProps): React.JSX.Element {
return (
<span className={cn('badge', VARIANT_CLASS[variant], className)}>
{children}
</span>
)
}
Works withNext.js 15React 19Tailwind v4TypeScript 5
More from ALOHA // NEXT
Button
Tropical light-mode button with primary, secondary, and ghost variants in three sizes. Renders as a Next.js Link when an href is provided.
Card
Tropical feature card with a colored icon element, category tag, title, and description. Supports coral, turquoise, yellow, green, and pink color variants.
Text
Polymorphic text primitive with body, caption, label, and code variants styled for the ALOHA tropical light palette.