# NoticeBar
### Install
```js
import Vue from 'vue';
import { NoticeBar } from 'vant';
Vue.use(NoticeBar);
```
## Usage
### Basic Usage
```html
```
### Scrollable
```html
```
### Wrapable
```html
Notice Content
```
### Mode
```html
Notice Content
Notice Content
```
### Custom Style
```html
Notice Content
```
### Vertical Scroll
```html
Content 1
Content 2
Content 3
```
## API
### Props
| Attribute | Description | Type | Default |
| --- | --- | --- | --- |
| mode | Mode, can be set to `closeable` `link` | _string_ | `''` |
| text | Notice text content | _string_ | `''` | - |
| color | Text color | _string_ | `#f60` |
| background | Background color | _string_ | `#fff7cc` |
| left-icon | Left Icon | _string_ | - |
| delay | Animation delay (s) | _number \| string_ | `1` |
| speed | Scroll speed (px/s) | _number \| string_ | `50` |
| scrollable | Whether to scroll content | _boolean_ | - |
| wrapable | Whether to enable text wrap | _boolean_ | `false` | - |
### Events
| Event | Description | Arguments |
| --------------- | ------------------------------ | -------------- |
| click | Triggered when click NoticeBar | _event: Event_ |
| close | Triggered when closed | _event: Event_ |
| replay `v2.6.2` | Triggered when replay | - |
### Slots
| Name | Description |
| ---------- | ------------------- |
| default | Notice text content |
| left-icon | Custom left icon |
| right-icon | Custom right icon |