mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
d44f404eae
* chore: improve sort api table scripts * sort api * add ignore * Revert "sort api" This reverts commit 343505d5f09d69349ce1fbdaea2a9faa7e852207. * sort api * Update package.json * sort api * Delete sort-api.js * sort api * sort api * sort api * fix * Update index.zh-CN.md * fix input-number * fix input-number * sort func * fix * Method moved to the end * carousel method
942 B
942 B
category | type | title | cover |
---|---|---|---|
Components | Data Display | Tag | https://gw.alipayobjects.com/zos/alicdn/cH1BOLfxC/Tag.svg |
Tag for categorizing or markup.
When To Use
-
It can be used to tag by dimension or property.
-
When categorizing.
API
Tag
Property | Description | Type | Default | Version |
---|---|---|---|---|
closable | Whether the Tag can be closed | boolean | false | |
closeIcon | Custom close icon | ReactNode | - | 4.4.0 |
color | Color of the Tag | string | - | |
icon | Set the icon of tag | ReactNode | - | |
visible | Whether the Tag is closed or not | boolean | true | |
onClose | Callback executed when tag is closed | (e) => void | - |
Tag.CheckableTag
Property | Description | Type | Default |
---|---|---|---|
checked | Checked status of Tag | boolean | false |
onChange | Callback executed when Tag is checked/unchecked | (checked) => void | - |