# Tag ### Install ```js import Vue from 'vue'; import { Tag } from 'vant'; Vue.use(Tag); ``` ## Usage ### Basic Usage ```html Tag Tag Tag Tag Tag ``` ### Round style ```html Tag Tag Tag Tag Tag ``` ### Mark style ```html Tag Tag Tag Tag Tag ``` ### Plain style ```html Tag Tag Tag Tag Tag ``` ### Custom Color ```html Tag Tag Tag Tag Tag ``` ### Custom Size ```html Tag Tag Tag ``` ### Closeable ```html Tag Tag ``` ```js export default { data() { return { show: { primary: true, success: true, }, }; }, methods: { close(type) { this.show[type] = false; }, }, }; ``` ## 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_ | - | | 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 `v2.2.9` | 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 | - |