GameCN
Components

Game Alert Dialog

Critical confirmation dialog for risky game actions.

Game Alert Dialog

game-alert-dialog

OverlayBetacomponent

A critical confirmation dialog for destructive, irreversible, or high-cost actions.

npx shadcn@latest add @gamecn/game-alert-dialog
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 Alert Dialog and render it with the default GameCN treatment.

npx shadcn@latest add @gamecn/game-alert-dialog
import { GameAlertDialog } from '@/components/ui/game-alert-dialog'

Advanced

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

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

Customization

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

<GameAlertDialog
  iconSrc="/game-assets/game-alert-dialog.png"
/>