📜  vuetify install - Shell-Bash (1)

📅  最后修改于: 2023-12-03 14:48:23.922000             🧑  作者: Mango

Vuetify Install

Vuetify is a Material Design component framework for Vue.js. It includes a set of consistent and reusable UI components and helps developers to quickly build beautiful and responsive web applications.

Installation

You can install Vuetify in your Vue.js project using npm.

npm install vuetify
Usage

After installation, you can import the Vuetify components in your Vue.js components.

import Vue from 'vue';
import Vuetify from 'vuetify';
import 'vuetify/dist/vuetify.min.css';

Vue.use(Vuetify);

new Vue({
  el: '#app',
  render: h => h(App),
});

Then, in your Vue components, you can use Vuetify components like this:

<template>
  <v-app>
    <v-toolbar color="primary">
      <v-toolbar-title>My App</v-toolbar-title>
    </v-toolbar>
    <v-content>
      <v-container>
        <v-row>
          <v-col cols="6">
            <v-card>
              <v-card-title>
                Title
              </v-card-title>
              <v-card-text>
                Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vel orci eget quam mollis dapibus ut nec ex. Suspendisse potenti.
              </v-card-text>
            </v-card>
          </v-col>
          <v-col cols="6">
            <v-card>
              <v-card-title>
                Title
              </v-card-title>
              <v-card-text>
                Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vel orci eget quam mollis dapibus ut nec ex. Suspendisse potenti.
              </v-card-text>
            </v-card>
          </v-col>
        </v-row>
      </v-container>
    </v-content>
  </v-app>
</template>
Documentation

Vuetify has comprehensive documentation available on their website, which includes a list of available components, examples, and customization options:

https://vuetifyjs.com/en/