

<DemoTitle title="Tag" desc="进行标记和分类的小标签">
#### API

| 属性名 | 描述 | 类型 | 默认值 | 
|--------|--------|--------|--------|
| size | 尺寸 | 'small' \| 'middle' | 'middle' | 
| color | 标签色 | SparkTagColors \| string | 'purple' | 

<AntdApiRef url="https://ant.design/components/tag-cn/#api"></AntdApiRef>


## antd API

通用属性参考：[通用属性](/docs/react/common-props)

### Tag

| 参数 | 说明 | 类型 | 默认值 | 版本 | 
|--------|--------|--------|--------|--------|
| closeIcon | 自定义关闭按钮。5.7.0：设置为  | ReactNode | false | 4.4.0 | 
| icon | 设置图标 | ReactNode | - |  | 
| bordered | 是否有边框 | boolean | true | 5.4.0 | 
| onClose | 关闭时的回调（可通过  | (e: React.MouseEvent) => void | - |  | 


### Tag.CheckableTag

| 参数 | 说明 | 类型 | 默认值 | 
|--------|--------|--------|--------|
| checked | 设置标签的选中状态 | boolean | false | 
| onChange | 点击标签时触发的回调 | (checked) => void | - | 
