# Tag
### Install
``` javascript
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 | Version |
|------|------|------|------|------|
| 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 | Whether to be closeable | *boolean* | `false` | 2.2.9 |
### Slots
| Name | Description |
|------|------|
| default | Default slot |
### Events
| Event | Description | Arguments |
|------|------|------|
| click | Triggered when clicked | event: Event |
| close | Triggered when click close icon | - |