abhishek-mallick

XP Bar

Component

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>
  );
}

More by abhishek-mallick

View all
  • Isometric Bars Chart

    Isometric Bars Chart

    13
  • Keys

    Keys

    8
  • Rack

    Rack

    7
  • Isometric Laptop

    Isometric Laptop

    6
  • Nodes

    Nodes

    5
  • Stack

    Stack

    5
  • Isometric Cube

    Isometric Cube

    5
  • Skyline

    Skyline

    4