GameCN
Components

Game Badge

A compact status badge for rarity, threat, role, and buff metadata.

Game Badge

game-badge

FoundationReadycomponent

Compact metadata badges for rarity, role, threat, and buff state.

npx shadcn@latest add @gamecn/game-badge
Live Preview
Rendered with the component style selected in the top-right selector.
Frame
Scale100%
NeutralBuffRareThreatArcane
Examples
Basic setup, game-state usage, and customization paths.

Basic

Install Game Badge and render it with the default GameCN treatment.

npx shadcn@latest add @gamecn/game-badge
import { GameBadge } from '@/components/ui/game-badge'

Advanced

Use Game Badge with richer game-state data such as variants, empty states, compact density, or critical states.

<GameBadge
  className="max-w-md"
/>

Customization

Swap artwork, tune tokens, and wire the installed copy to your live game state.

<GameBadge
  iconSrc="/game-assets/game-badge.png"
/>