About
A row of pixel-art icons (hearts, armor, drumsticks, etc.) where each icon represents two points, used to render game HUD meters like health, armor or hunger bars.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Points Bar to your project and fits it to your theme.
Code
How Points Bar is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import PointsBar from "@/components/ui/points-bar";
import { HeartIcon } from "@malilion/block-ui-icons";
export default function PointsBarSizesDemo() {
return (
<div
className="flex w-full flex-col gap-4 rounded-md p-6"
style={{ background: "var(--block-bg)", color: "var(--block-text)" }}
>
<PointsBar
value={14}
max={20}
iconSize={16}
label="Health"
icon={<HeartIcon size={16} />}
/>
<PointsBar
value={14}
max={20}
iconSize={24}
label="Health"
icon={<HeartIcon size={24} />}
/>
<PointsBar
value={14}
max={20}
iconSize={32}
label="Health"
icon={<HeartIcon size={32} />}
/>
</div>
);
}

