mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
925 B
925 B
category | type | title |
---|---|---|
Components | Data Display | Tag |
Tag for categorizing or markuping.
When To Use
-
It can be used to tag by dimension or property.
-
categorizing
API
Tag
Property | Description | Type | Default |
---|---|---|---|
color | The background color of Tag | string | - |
closable | Tag can be closed. | boolean | false |
onClose | Callback when tag was closed | (e) => void | - |
afterClose | Callback when closed animation is complete | () => void | - |
Tag.CheckableTag
Property | Description | Type | Default |
---|---|---|---|
checked | To set the checked status for Tag | boolean | false |
onChange | A callback which will be called while Tag is clicked | (checked) => void | - |