You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
category: Components
|
|
|
|
type: Data Display
|
|
|
|
title: 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 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 | - |
|