About
A segmented experience/progress bar that shows a level number centered above a row of lit-up segments, for game-style leveling UIs.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds XP Bar to your project and fits it to your theme.
Code
How XP Bar is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { XpBar } from "@/components/ui/xp-bar";
export default function XpBarDemo() {
return (
<div className="flex w-full items-center justify-center bg-background p-10">
<XpBar level={12} value={0.64} />
</div>
);
}








