PU-Tag Component
A compact tag component for displaying labels with optional icons
Usage
Basic Usage
Default Tag
Tag with Icon
Prop | Type | Required | Default | Description |
---|---|---|---|---|
label | string | Yes | - | Text content of the tag |
icon | string | No | undefined | Optional 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