@moreillon/vuetify3-application-template
v3.2.1
Published
Usage example:
Downloads
69
Readme
Vuetify 3 application template
Usage example:
<template>
<v-app>
<AppTemplate :options="options" @userChanged="handleUserChanged($event)">
<template v-slot:nav>
<v-list>
<v-list-item> </v-list-item>
</v-list>
</template>
</AppTemplate>
</v-app>
</template>
<script lang="ts" setup>
import AppTemplate from "@moreillon/vuetify3-application-template"
import "@moreillon/vuetify3-application-template/dist/style.css"
import { ref } from "vue"
const options = ref({
title: "Example application",
author: "Maxime Moreillon",
login_url: "https://api.users.maximemoreillon.com/auth/login",
identification_url: "https://api.users.maximemoreillon.com/users/self",
})
async function handleUserChanged({ user, jwt }: any) {
// Do something with user info or JWT
}
</script>