Vuetify란, Vue에서 제공하는 css 라이브러리다.
npm install vuetify
node_modules 밑에 vuetify 생성확인
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// vuetify
import Vuetify from 'vuetify'
import 'vuetify/dist/vuetify.min.css'
Vue.use(Vuetify);
Vue.config.productionTip = false
new Vue({
router,
store,
vuetify: new Vuetify(),
render: h => h(App)
}).$mount('#app')
<!-- App.vue -->
<template>
<v-app id="app">
</v-app>
</template>
Vuetify 버튼 적용 확인하기
<!-- App.vue -->
<template>
<v-app id="app">
<v-btn color="success">Success</v-btn>
<v-btn color="error">Error</v-btn>
<v-btn color="warning">Warning</v-btn>
<v-btn color="info">Info</v-btn>
</v-app>
</template>