A Pen by whbjzzwjxq on CodePen.
Created
January 17, 2020 18:28
-
-
Save whbjzzwjxq/55b3ec24c87d025c9beb51ebf786825f to your computer and use it in GitHub Desktop.
Vuetify Example Pen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<v-app id="inspire"> | |
<div class="text-center"> | |
<v-btn | |
color="blue" | |
dark | |
@click="sheet = !sheet" | |
> | |
Open v-model | |
</v-btn> | |
<v-bottom-sheet v-model="sheet" width="500px"> | |
<v-sheet class="text-center" height="200px"> | |
<v-btn | |
class="mt-6" | |
text | |
color="red" | |
@click="sheet = !sheet" | |
>close</v-btn> | |
<div class="py-3">This is a bottom sheet using the controlled by v-model instead of activator</div> | |
</v-sheet> | |
</v-bottom-sheet> | |
</div> | |
</v-app> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Vue({ | |
el: '#app', | |
vuetify: new Vuetify(), | |
data: () => ({ | |
sheet: false, | |
tiles: [ | |
{ img: 'keep.png', title: 'Keep' }, | |
{ img: 'inbox.png', title: 'Inbox' }, | |
{ img: 'hangouts.png', title: 'Hangouts' }, | |
{ img: 'messenger.png', title: 'Messenger' }, | |
{ img: 'google.png', title: 'Google+' }, | |
], | |
}), | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdn.jsdelivr.net/npm/babel-polyfill/dist/polyfill.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/vue@2.x/dist/vue.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/vuetify@2.2.4/dist/vuetify.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet" /> | |
<link href="https://cdn.jsdelivr.net/npm/@mdi/font@4.x/css/materialdesignicons.min.css" rel="stylesheet" /> | |
<link href="https://fonts.googleapis.com/css?family=Material+Icons" rel="stylesheet" /> | |
<link href="https://cdn.jsdelivr.net/npm/vuetify@2.2.4/dist/vuetify.min.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment