Components
Game Drawer
Slide-in panel for inventory, quest logs, maps, and mobile menus.
Game Drawer
game-drawer
OverlayBetacomponent
A slide-in panel for inventory, quest logs, maps, and mobile menu shells.
npx shadcn@latest add @gamecn/game-drawerLive 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 Drawer and render it with the default GameCN treatment.
npx shadcn@latest add @gamecn/game-drawerimport { GameDrawer } from '@/components/ui/game-drawer'Advanced
Use Game Drawer with richer game-state data such as variants, empty states, compact density, or critical states.
<GameDrawer
className="max-w-md"
/>Customization
Swap artwork, tune tokens, and wire the installed copy to your live game state.
<GameDrawer
iconSrc="/game-assets/game-drawer.png"
/>