The layout system is the heart of every application. Below are the officially supported examples, ranging from desktop to mobile applications.
In order for your application to work properly, you must wrap it in a
v-app component. This component is required for determining grid breakpoints for the layout. This can exist anywhere inside the body, but must be the parent of ALL Vuetify components.
This is an example of the default application markup for Vuetify. You can place your layout elements anywhere, as long as you apply the app property. The key component in all of this is the
v-content element. This will be dynamically sized depending upon the structure of your designated app components. This allows you to create extremely customized solutions.
<v-app> <v-navigation-drawer app></v-navigation-drawer> <v-toolbar app></v-toolbar> <v-content> <v-container fluid> <router-view></router-view> </v-container> </v-content> <v-footer app></v-footer> </v-app>
Applying the app prop automatically applies position: fixed to the layout element. If your application calls for an absolute element, you can overwrite this functionality using the absolute prop.
In Vuetify, the
v-app component and the app help bootstrap your application with the proper sizing around
v-content. This allows you to create truly unique interfaces without the hassle of managing your layout. The
v-app component is REQUIRED for all applications. This is the mount point for many of Vuetify's components and functionality.