ALOHA // NEXTUI

Badge

Tropical badge with coral, turquoise, yellow, green, and pink variants for category tags and labels.

$npx @voltenworks/shipui add badge --theme aloha
Or install the base component for free:
Live Preview
Open full demo
voltenworks.com/shipui/aloha/demo/components#02-badge
Usage
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>
  )
}
Preview in theme demoGet full theme, $29
Works withNext.js 15React 19Tailwind v4TypeScript 5
More from ALOHA // NEXT
ALOHA // NEXTUI

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.

ALOHA // NEXTUI

Card

Tropical feature card with a colored icon element, category tag, title, and description. Supports coral, turquoise, yellow, green, and pink color variants.

ALOHA // NEXTUI

Text

Polymorphic text primitive with body, caption, label, and code variants styled for the ALOHA tropical light palette.