GameCN
Components

Game Modal

Framed dialog overlay for confirmations, quests, and rewards.

Game Modal

game-modal

OverlayBetacomponent

A framed modal dialog for confirmations, quests, rewards, and system overlays.

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

Basic

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

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

Advanced

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

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

Customization

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

<GameModal
  iconSrc="/game-assets/game-modal.png"
/>