# Badge
### Install
```js
import { createApp } from 'vue';
import { Badge } from 'vant';
const app = createApp();
app.use(Badge);
```
## Usage
### Basic Usage
```html
```
### Max
```html
```
### Custom Color
```html
```
### Standaline
```html
```
## API
### Props
| Attribute | Description | Type | Default |
| --- | --- | --- | --- |
| content | Badge content | _string \| number_ | - |
| color | Background color | _string_ | `#ee0a24` |
| dot | Whether to show dot | _boolean_ | `false` |
| max | Max value,show `{max}+` when exceed,only works when content is number type | _number_ | - |
### Slots
| Name | Description |
| ------- | ------------ |
| default | Default slot |