ant-design-vue/components/tag/index.en-US.md
果冻橙 f265a7bb02
fix docs dark theme & add docs coverDark (#6367)
* fix docs dark theme & add docs coverDark

* fix theme Editor edit
2023-03-20 11:15:02 +08:00

1.6 KiB

category type title cover coverDark
Components Data Display Tag https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*_SBsSrKLg00AAAAAAAAAAAAADrJ8AQ/original https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*JPNAQYrVkYkAAAAAAAAAAAAADrJ8AQ/original

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 Version
closable Whether the Tag can be closed boolean false
closeIcon Custom close icon VNode | slot - 2.0.0
color Color of the Tag string -
icon Set the icon of tag VNode | slot - 2.0.0

Tag Events

Events Name Description Arguments
close Callback executed when tag is closed (e) => void

Tag.CheckableTag

Property Description Type Default
checked(v-model) Checked status of Tag boolean false

Tag.CheckableTag Events

Events Name Description Arguments
change Callback executed when Tag is checked/unchecked (checked) => void