Components
Game Panel
A framed panel primitive for game menus, HUD clusters, and overlays.
Game Panel
game-panel
FoundationReadycomponent
A framed panel primitive for overlays, HUD clusters, and menu modules.
npx shadcn@latest add @gamecn/game-panelLive Preview
Rendered with the component style selected in the top-right selector.
Frame
Scale100%
Mission Board
Ashline Bridge
Three encounters detected. Extract before the storm lock closes.
Examples
Basic setup, game-state usage, and customization paths.
Basic
Install Game Panel and render it with the default GameCN treatment.
npx shadcn@latest add @gamecn/game-panelimport { GamePanel } from '@/components/ui/game-panel'Advanced
Use Game Panel with richer game-state data such as variants, empty states, compact density, or critical states.
<GamePanel
className="max-w-md"
/>Customization
Swap artwork, tune tokens, and wire the installed copy to your live game state.
<GamePanel
iconSrc="/game-assets/game-panel.png"
/>