# tag

- 分组：组合组件（Composite）
- 页面：/components/tag
- 源码：packages/react/src/components/tag.tsx

## 导出

```ts
import { Tag, tagVariants } from "@modra/react";
```

## Props（TagProps）

| 名称 | 必填 | 类型 | 说明 |
| --- | --- | --- | --- |
| `closable` | 否 | `boolean` |  |
| `onClose` | 否 | `(event: React.MouseEvent<HTMLButtonElement>) => void` |  |
| `variant` | 否 | `"default" \| "secondary" \| "success" \| "warning" \| "error" \| "outline"` |  |
| `disabled` | 否 | `boolean` |  |
