# Tag

Removable chip/tag



<ComponentPreview base="ink" name="tag-demo" />

Installation [#installation]

<CodeTabs>
  <TabsList>
    <TabsTrigger value="cli">
      Command
    </TabsTrigger>

    <TabsTrigger value="manual">
      Manual
    </TabsTrigger>
  </TabsList>

  <TabsContent value="cli">
    ```bash
    npx shadcn@latest add @termcn/tag
    ```
  </TabsContent>

  <TabsContent value="manual">
    <Steps>
      <Step>
        Copy and paste the following code into your project.
      </Step>

      <ComponentSource base="ink" name="tag" title="components/ui/tag.tsx" />

      <Step>
        Update the import paths to match your project setup.
      </Step>
    </Steps>
  </TabsContent>
</CodeTabs>

Usage [#usage]

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

```tsx
<Tag>typescript</Tag>
```

API Reference [#api-reference]

Tag [#tag]

| Prop       | Type                     | Default     |
| ---------- | ------------------------ | ----------- |
| `children` | `ReactNode`              | `required`  |
| `onRemove` | `() => void`             | -           |
| `color`    | `string`                 | -           |
| `variant`  | `"default" \| "outline"` | `"default"` |
