Components
Game Accordion
Collapsible section stack for codex, quests, and settings.
Game Accordion
game-accordion
NavigationBetacomponent
A collapsible section stack for quest details, settings groups, and codex entries.
npx shadcn@latest add @gamecn/game-accordionLive Preview
Rendered with the component style selected in the top-right selector.
Frame
Scale100%
A signal prism is broadcasting from the collapsed transit deck.
Examples
Basic setup, game-state usage, and customization paths.
Basic
Install Game Accordion and render it with the default GameCN treatment.
npx shadcn@latest add @gamecn/game-accordionimport { GameAccordion } from '@/components/ui/game-accordion'Advanced
Use Game Accordion with richer game-state data such as variants, empty states, compact density, or critical states.
<GameAccordion
className="max-w-md"
/>Customization
Swap artwork, tune tokens, and wire the installed copy to your live game state.
<GameAccordion
iconSrc="/game-assets/game-accordion.png"
/>