mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +08:00
e2495fafe0
* rm tag default anim, add animate demo * rm InnerTag * rm animate * rm afterClose test * update warning * update animation demo * fix typo * update wraning * fix tag test * rebase master, test tag * update tag to Tag * update animation explanation * update en-us
932 B
932 B
category | type | title |
---|---|---|
Components | Data Display | Tag |
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 |
Tag.CheckableTag
Property | Description | Type | Default |
---|---|---|---|
checked | Checked status of Tag | boolean | false |
onChange | Callback executed when Tag is checked/unchecked | (checked) => void | - |