Simple mobile customizable dialog.
Sandbox: https://codesandbox.io/s/2h39y
yarn add vue-bottom-dialog
# or
npm i vue-bottom-dialog --save
import VueBottomDialog from 'vue-bottom-dialog'
Vue.use(VueBottomDialog)
Component can be controlled with a v-model.
<template>
<vue-bottom-dialog v-model="dialog" />
</template>
<script>
export default {
data: () => {
return {
dialog: true,
};
},
};
</script>
Name | Required | Type | Default | Description |
---|---|---|---|---|
height | false | Number | 100 | Dialog have fixed height |
backgroundColor | false | String | #757575 | Background color |
overlayColor | false | String | rgba(255, 255, 255, 0.5) | Outside dialog background color |
hideIndent | false | Boolean | false | If true, indent will be hidden |
indentColor | false | String | #FFF | Color of indent |
topRadius | false | String | 20px | Radius of top corners |
MIT