# Tag ### Install ```js import { createApp } from 'vue'; import { Tag } from 'vant'; const app = createApp(); app.use(Tag); ``` ## Usage ### Basic Usage ```html Tag Tag Tag Tag ``` ### Plain style ```html Tag ``` ### Round style ```html Tag ``` ### Mark style ```html Tag ``` ### Closeable ```html Tag ``` ```js export default { data() { return { show: true, }; }, methods: { close() { this.show = false; }, }, }; ``` ### Custom Size ```html Tag Tag Tag ``` ### Custom Color ```html Tag Tag Tag ``` ## API ### Props | Attribute | Description | Type | Default | | --- | --- | --- | --- | | type | Type, can be set to `primary` `success` `danger` `warning` | _string_ | `default` | | size | Size, can be set to `large` `medium` | _string_ | - | | color | Custom color | _string_ | - | | show | Whether to show tag | _boolean_ | `true` | | plain | Whether to be plain style | _boolean_ | `false` | | round | Whether to be round style | _boolean_ | `false` | | mark | Whether to be mark style | _boolean_ | `false` | | text-color | Text color | _string_ | `white` | | closeable | Whether to be closeable | _boolean_ | `false` | ### Slots | Name | Description | | ------- | ------------ | | default | Default slot | ### Events | Event | Description | Arguments | | ----- | ------------------------------- | -------------- | | click | Triggered when clicked | _event: Event_ | | close | Triggered when click close icon | - |