Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Shows a toggle switch using Vuetify VSwitch component.
<template>
<v-app>
<v-main class="pa-6 text-center">
<v-switch v-model="isOn" label="Toggle"></v-switch>
<p>Switch is {{ isOn ? 'On' : 'Off' }}</p>
</v-main>
</v-app>
</template>
<script>
import { ref } from 'vue';
export default { setup() { const isOn = ref(false); return { isOn }; } };
</script>Vuetify is a Vue.js framework that provides a comprehensive collection of UI components following the Material Design specification, enabling developers to build visually consistent, responsive, and feature-rich web applications.
Origin & Creator
Created by John Leider in 2016 to provide a complete Material Design framework for Vue.js applications.
Industrial Note
Vuetify is widely used in Vue.js projects that require a Material Design look and feel, including dashboards, SaaS applications, and enterprise interfaces.