Tag
Tag
Used for marking and categorization.
가져오기import{ Tag }from"antd"; |
It can be used to tag by dimension or property.
When categorizing.
Common props ref:Common props
| Property | Description | Type | Default | Version |
|---|---|---|---|---|
| closeIcon | Custom close icon. 5.7.0: close button will be hidden when setting to null or false | ReactNode | false | 4.4.0 |
| color | Color of the Tag | string | - | |
| icon | Set the icon of tag | ReactNode | - | |
| bordered | Whether has border style | boolean | true | 5.4.0 |
| onClose | Callback executed when tag is closed | (e: React.MouseEvent<HTMLElement, MouseEvent>) => void | - |
| Property | Description | Type | Default |
|---|---|---|---|
| checked | Checked status of Tag | boolean | false |
| onChange | Callback executed when Tag is checked/unchecked | (checked) => void | - |
| 토큰 이름 | 설명 | 타입 | 기본값 |
|---|---|---|---|
| defaultBg | 默认背景色 | string | #fafafa |
| defaultColor | 默认文字颜色 | string | rgba(0, 0, 0, 0.88) |