Components
Resource Pips
Discrete resource indicators for combo points, focus, rage, and shields.
Resource Pips
resource-pips
HUDReadycomponent
Discrete resource indicators for combo points, focus, rage, and shields.
npx shadcn@latest add @gamecn/resource-pipsLive Preview
Rendered with the component style selected in the top-right selector.
Frame
Scale100%
Combo: 4 of 5
Rage: 3 of 6
Examples
Basic setup, game-state usage, and customization paths.
Basic
Install Resource Pips and render it with the default GameCN treatment.
npx shadcn@latest add @gamecn/resource-pipsimport { ResourcePips } from '@/components/ui/resource-pips'Advanced
Use Resource Pips with richer game-state data such as variants, empty states, compact density, or critical states.
<ResourcePips
className="max-w-md"
/>Customization
Swap artwork, tune tokens, and wire the installed copy to your live game state.
<ResourcePips
iconSrc="/game-assets/resource-pips.png"
/>