Mahmoud Ilyan

Tag

Component

About

A compact label chip for categorizing, filtering, or tagging items, with optional start/end icons and a removable close button.

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

Code

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

Usage.tsx

import { Tag } from "@/components/ui/tag";

export default function TagDemo() {
  return (
    <div className="flex flex-wrap gap-2">
      <Tag size="sm">Small</Tag>
      <Tag size="md">Medium - Default</Tag>
      <Tag size="lg">Large</Tag>
    </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
  • Badge

    Badge

    1
  • Textarea

    Textarea

  • Tabs

    Tabs