lipa88-mk

Badges

Component

About

A small list of colored pill-style badges (e.g. tags, labels, statuses) rendered from an array of strings, with configurable size and color.

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

Code

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

Usage.tsx

import { Badges } from "@/components/ui/badges";

export default function BadgeSizesDemo() {
  return (
    <div className="flex flex-col items-center justify-center gap-6 min-h-[200px] bg-background p-8">
      <Badges list={["New", "Sale", "Exclusive"]} size="base" coloring="blue" />
      <Badges
        list={["New", "Sale", "Exclusive"]}
        size="large"
        coloring="blue"
      />
    </div>
  );
}

Dependencies

More by lipa88-mk

View all
  • Button

    Button

    2
  • Checkbox

    Checkbox

  • Select

    Select