GameCN
Components

Game Sidebar

Game-styled navigation rail for menus and shell layouts.

Game Sidebar

game-sidebar

NavigationBetacomponent

A game-styled navigation rail for menus, campaign screens, and inventory shells.

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

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

Advanced

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

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

Customization

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

<GameSidebar
  iconSrc="/game-assets/game-sidebar.png"
/>