Skip to content

Instantly share code, notes, and snippets.

@bmorrisondev
Created January 21, 2019 17:17
Show Gist options
  • Save bmorrisondev/e7ea41ac224c9531e2e5dabc24b8d52c to your computer and use it in GitHub Desktop.
Save bmorrisondev/e7ea41ac224c9531e2e5dabc24b8d52c to your computer and use it in GitHub Desktop.
A VueJS + Vuetify app template with toolbar, navigation drawer, and router configuration.
<template>
<v-app>
<v-navigation-drawer :value="isDrawerVisible" app clipped>
<v-list class="pt-0">
<v-list-tile @click="">
<v-list-tile-action>
<v-icon>dashboard</v-icon>
</v-list-tile-action>
<v-list-tile-content>
<v-list-tile-title>Home</v-list-tile-title>
</v-list-tile-content>
</v-list-tile>
<v-list-tile @click="">
<v-list-tile-action>
<v-icon>question_answer</v-icon>
</v-list-tile-action>
<v-list-tile-content>
<v-list-tile-title>About</v-list-tile-title>
</v-list-tile-content>
</v-list-tile>
</v-list>
</v-navigation-drawer>
<v-toolbar elevation-0 class="navbarstyle" app fixed clippedLeft>
<v-toolbar-side-icon @click="isDrawerVisible = !isDrawerVisible" flat></v-toolbar-side-icon>
<v-toolbar-title>
App Name
</v-toolbar-title>
<v-toolbar-items>
</v-toolbar-items>
</v-toolbar>
<v-content>
<v-container fluid fill-height>
<router-view/>
</v-container>
</v-content>
</v-app>
</template>
<script>
export default {
name: 'App',
data () {
return {
isDrawerVisible: true
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment