GLASS // NEXTUI

Badge

Frosted-glass badge with sky, indigo, cyan, violet, and emerald variants for tags and status indicators.

$npx @voltenworks/shipui add badge --theme glass
Or install the base component for free:
Live Preview
Open full demo
voltenworks.com/shipui/glass/demo/components#02-badge
Usage
TSX
<Badge variant="sky">Beta</Badge>
Variants
<Badge variant="sky">Beta</Badge>
<Badge variant="indigo">Pro</Badge>
<Badge variant="cyan">Live</Badge>
<Badge variant="violet">New</Badge>
<Badge variant="emerald">Active</Badge>
Source
TSX
import { cn } from '@/lib/utils'

type BadgeVariant = 'sky' | 'indigo' | 'cyan' | 'violet' | 'emerald'

interface BadgeProps {
  children:   React.ReactNode
  variant?:   BadgeVariant
  className?: string
}

const VARIANT_CLASS: Record<BadgeVariant, string> = {
  sky:     'badge--sky',
  indigo:  'badge--indigo',
  cyan:    'badge--cyan',
  violet:  'badge--violet',
  emerald: 'badge--emerald',
}

export function Badge({
  children,
  variant   = 'sky',
  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 GLASS // NEXT
GLASS // NEXTUI

Button

Glassmorphism button with primary, secondary, and ghost variants in three sizes. Renders as a Next.js Link when an href is provided.

GLASS // NEXTUI

Card

Composable glassmorphism card container with frosted-glass surface and header, body, and footer sub-components.

GLASS // NEXTUI

Text

Polymorphic text primitive with body, caption, label, and code variants styled for the GLASS dark glassmorphism palette.