# Overlay ### Install ```js import Vue from 'vue'; import { Overlay } from 'vant'; Vue.use(Overlay); ``` ## Usage ### Basic Usage ```html ``` ```js export default { data() { return { show: false } } }, ``` ### Embedded Content ```html
``` ## API ### Props | Attribute | Description | Type | Default | |------|------|------|------| | show | Whether to show overlay | *boolean* | `false` | | z-index | z-index | *string \| number* | `1` | | duration | Animation duration | *string \| number* | `0.3` | | class-name | ClassName | *string* | - | | custom-class `v2.2.5` | Custom style | *object* | - | ### Events | Event | Description | Arguments | |------|------|------| | click | Triggered when clicked | event: Event | ### Slots | Name | Description | |------|------| | default `v2.2.5` | Default slot |