PU-Tag Component

A compact tag component for displaying labels with optional icons

Usage

Basic Usage

Default Tag
Tag with Icon
PropTypeRequiredDefaultDescription
labelstringYes-Text content of the tag
iconstringNoundefinedOptional icon name from PUIcon collection
  • Base styling with Tailwind:
    .pu-tag--default {
      @apply w-fit px-2 text-sm py-1 rounded-lg;
      @apply flex justify-between gap-2 items-center;
      @apply border-2 border-primary-light-500 bg-primary-dark-50;
    }
    
  • Icon styling:
    .cursor-pointer {
      @apply hover:opacity-80 transition-opacity;
    }
    
  • Compact and lightweight
  • Optional icon support
  • Responsive design
  • Customizable through props
  • PUIcon component for icon display
  • Tailwind CSS for styling
  • Vue 3 Composition API