Mahmoud Ilyan

Badge

Component

About

A small label for displaying status, categories, or metadata inline with text or UI elements.

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

Code

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

Usage.tsx

import { Badge } from "@/components/ui/badge";

export default function RoleBadgesDemo() {
  return (
    <div className="flex gap-2">
      <Badge variant="success">Admin</Badge>
      <Badge variant="info">Editor</Badge>
      <Badge variant="normal">Viewer</Badge>
    </div>
  );
}

Dependencies

More by Mahmoud Ilyan

View all
  • Steps

    Steps

    5
  • Chart

    Chart

    2
  • Radio Card

    Radio Card

    1
  • Switch

    Switch

    1
  • Input

    Input

    1
  • Textarea

    Textarea

  • Tabs

    Tabs

  • Progress

    Progress