# NoticeBar
### Install
``` javascript
import Vue from 'vue';
import { NoticeBar } from 'vant';
Vue.use(NoticeBar);
```
## Usage
### Basic Usage
```html
```
### Disable scroll
```html
Notice Content
```
### Wrapable
```html
Notice Content
```
### Mode
```html
Notice Content
Notice Content
```
### Custom Style
```html
Notice Content
```
## API
### Props
| Attribute | Description | Type | Default |
|------|------|------|------|
| mode | Mode, can be set to `closeable` `link` | *string* | `''` |
| text | Notice text content | *string* | `''` | - |
| delay | Animation delay (s) | *number* | `1` |
| speed | Scroll speed (px/s) | *number* | `50` |
| scrollable | Whether to scroll content | *boolean* | `true` |
| wrapable | Whether to enable text wrap | *boolean* | `false` | - |
| left-icon | Left Icon | *string* | - |
| color | Text color | *string* | `#f60` |
| background | Background color | *string* | `#fff7cc` |
### Events
| Event | Description | Arguments |
|------|------|------|
| click | Triggered when click NoticeBar | event: Event |
| close | Triggered when closed | event: Event |
### Slots
| Name | Description |
|------|------|
| default | Notice text content |
| left-icon | Custom left icon |
| right-icon | Custom right icon |