mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
882cec62d6
* docs: Add components overview page * fix detail * remove ContributorsList form overview page * fix components url * improve code style * remove extra file * fix detail * fix lint * fix lint * docs: Finish components overview page * fix lint * docs: Update cover * fix lint * update cover * update menu * improve overview page * refactor code * fix order * update title * add components count * fix overview page ssr bug * move less file * update title margin Co-authored-by: arvinxx <arvinx@foxmail.com>
1.1 KiB
1.1 KiB
category | type | title | cover |
---|---|---|---|
Components | Data Display | Tag | https://gw.alipayobjects.com/zos/antfincdn/RkyisJo2r%267/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 |
---|---|---|---|
afterClose | Callback executed when close animation is completed, please use onClose , we will remove this in the next version |
() => void | - |
closable | Whether the Tag can be closed | boolean | false |
color | Color of the Tag | string | - |
onClose | Callback executed when tag is closed | (e) => void | - |
visible | Whether the Tag is closed or not | boolean | true |
icon | Set the icon of tag | ReactNode | - |
Tag.CheckableTag
Property | Description | Type | Default |
---|---|---|---|
checked | Checked status of Tag | boolean | false |
onChange | Callback executed when Tag is checked/unchecked | (checked) => void | - |