Tag
Tag for categorizing or markup.
#
When To Use- It can be used to tag by dimension or property.
- When categorizing.
#
Examples#
BasicContent
Content
Content
#
ClickableContent
#
Use prefix10
Content
20
Content
#
Editable10
Content
20
Content
#
ClosableContent
Content
Content
Content
#
Use with canCloseDELETE ME
#
Add & Remove Dynamicallytag 1
tag 2
tag 3
#
APIProperty | Description | Type | Default |
---|---|---|---|
closable | Whether the Tag can be closed | boolean | |
editable | Can update value when click tag | boolean | |
onClosed | Callback executed when close animation is completed | () => void | |
canClose | Trigger when tag close button is clicked, return true to close tag | () => boolean | () => Promise<boolean> | |
onChange | Callback executed when Tag is edited | (previousValue: string, value: string) => void | |
initialEditing | Initial edit status for tag | boolean | |
invalid | show invalid border for tag | boolean | |
prefix | Prefix of tag | ReactNode |