--- title: Tag description: A compact label for categorizing or filtering content. --- ## Preview ## Installation CLI Manual ```bash npx @olyx/cli@latest add tag ``` Install the following dependencies: ```bash npm install @base-ui/react @hugeicons/core-free-icons @hugeicons/react ``` Copy and paste the following code into your project. Update the import paths to match your project setup. ## Usage ```tsx import { Tag, TagDismiss } from "@/components/ui/tag" ``` ```tsx Label ``` ## API Reference ### Tag Container element for the tag. | Prop | Type | Default | | ---------- | -------------------------- | ---------- | | `variant` | `"stroke" \| "lighter"` | `"stroke"` | | `disabled` | `boolean` | `false` | ### TagDismiss Dismiss button rendered inside a tag. Uses a built-in close icon. ## Examples ### Lighter ### Dismissible ### Disabled ### With Icon