Categories
Vue Answers

How to make the v-container full width with Vuetify?

Spread the love

Sometimes, we want to make the v-container full width with Vuetify.

In this article, we’ll look at how to make the v-container full width with Vuetify.

How to make the v-container full width with Vuetify?

To make the v-container full width with Vuetify, we just add the fluid prop.

For instance, we write

<template>
  <v-content class="yellow">
    <v-container fluid>
      <v-layout>
        <router-view></router-view>
      </v-layout>
    </v-container>
  </v-content>
</template>

to add the fluid prop to the v-container to make it fill the width of the v-content component.

Conclusion

To make the v-container full width with Vuetify, we just add the fluid prop.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *