mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
parent
43d14f8517
commit
fab83990c2
@ -4,13 +4,13 @@ type: Data Display
|
||||
title: Tag
|
||||
---
|
||||
|
||||
Tag for categorizing or markuping.
|
||||
Tag for categorizing or markup.
|
||||
|
||||
## When To Use
|
||||
|
||||
- It can be used to tag by dimension or property.
|
||||
|
||||
- categorizing
|
||||
- When categorizing.
|
||||
|
||||
## API
|
||||
|
||||
@ -18,14 +18,14 @@ Tag for categorizing or markuping.
|
||||
|
||||
| Property | Description | Type | Default |
|
||||
|--------------|-----------------------|----------|--------------|
|
||||
| color | The 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 | - |
|
||||
| color | Color of the Tag | string | - |
|
||||
| closable | Whether Tag can be closed | boolean | `false` |
|
||||
| onClose | Callback executed when tag is closed | (e) => void | - |
|
||||
| afterClose | Callback executed when close animation is completed | () => 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 | - |
|
||||
| checked | Checked status of Tag | boolean | `false` |
|
||||
| onChange | Callback executed when Tag is checked/unchecked | (checked) => void | - |
|
||||
|
Loading…
Reference in New Issue
Block a user