sltowl

Bar List

Component

About

A compact list component that visualizes and compares ranked numeric values as horizontal bars, like top pages, traffic sources, or leaderboard scores.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Bar List to your project and fits it to your theme.

Code

How Bar List is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { BarList } from "@/components/ui/bar-list";

const data = [
  { name: "Search", value: 72 },
  { name: "Email", value: 58 },
  { name: "Social", value: 33 },
  { name: "Referral", value: 19 },
];

export default function BarListDemo() {
  return (
    <BarList
      className="w-full max-w-md"
      data={data}
      valueFormatter={(value) => `${value}%`}
    />
  );
}

More by sltowl

View all
  • Playback Scrubber

    Playback Scrubber

    43
  • Matte Alert Feedback

    Matte Alert Feedback

    41
  • Notification Stack

    Notification Stack

    30
  • Time Window Slider

    Time Window Slider

    20
  • Commands Menu

    Commands Menu

    14
  • Matte Meter Slider

    Matte Meter Slider

    14
  • Matte Opacity Slider

    Matte Opacity Slider

    12
  • Undo Feedback

    Undo Feedback

    8