Skip to content

Instantly share code, notes, and snippets.

@shishirraven
Last active January 9, 2022 18:40
Show Gist options
  • Save shishirraven/4b99ef6784c7477576e16df16db61fc3 to your computer and use it in GitHub Desktop.
Save shishirraven/4b99ef6784c7477576e16df16db61fc3 to your computer and use it in GitHub Desktop.
Brave Dialog Example
<BraveDialog ref="bravedialog" dialogwidth="500px">
<template #dialog-heading>
<img class="me-3" alt="Vue logo" width="30px;" src="../assets/logo.png"> VueJS Dialog
</template>
<template #dialog-body>
<div class="p-4">This is a BraveVue Dialog VueJS Component</div>
</template>
<template #footer>
<div class="btn btn-primary text-white m-4" @click="$refs.bravedialog.hide()">Close</div>
</template>
</BraveDialog>
<div @click="$refs.bravedialog.show()" class="btn btn-lg btn-primary text-white px-4">
<i class="bi bi-window"></i> Open Dialog
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment