Navigation drawer

The v-navigation-drawer component is what your users will utilize to navigate through the application. The navigation-drawer is pre-configured to work with or without vue-router right out the box.

Utilização

The navigation drawer is primarily used to house links to the pages in your application. Using null as the starting value for its v-model will initialize the drawer as closed on mobile and as open on desktop.

API

v-navigation-drawer
Nome
absolute
Padrão
false
Tipos
boolean

Components.NavigationDrawers.

Nome
app
Padrão
false
Tipos
boolean

Designa o componente como parte do layout do aplicativo. Usado para ajustar dinamicamente o dimensionamento de conteúdo

Nome
clipped
Padrão
false
Tipos
boolean

Components.NavigationDrawers.

Nome
dark
Padrão
false
Tipos
boolean

Components.NavigationDrawers.

Nome
disable-resize-watcher
Padrão
false
Tipos
boolean

Components.NavigationDrawers.

Nome
disable-route-watcher
Padrão
false
Tipos
boolean

Components.NavigationDrawers.

Nome
fixed
Padrão
false
Tipos
boolean

Components.NavigationDrawers.

Nome
floating
Padrão
false
Tipos
boolean

Components.NavigationDrawers.

Nome
height
Padrão
100%
Tipos
number | string

Define a altura do componente

Nome
hide-overlay
Padrão
false
Tipos
boolean

Components.NavigationDrawers.

Nome
light
Padrão
false
Tipos
boolean

Components.NavigationDrawers.

Nome
mini-variant
Padrão
false
Tipos
boolean

Components.NavigationDrawers.

Nome
mini-variant-width
Padrão
80
Tipos
number | string

Components.NavigationDrawers.

Nome
mobile-break-point
Padrão
1264
Tipos
number | string

Define o ponto de troca para mobile

Nome
permanent
Padrão
false
Tipos
boolean

Components.NavigationDrawers.

Nome
right
Padrão
false
Tipos
boolean

Components.NavigationDrawers.

Nome
stateless
Padrão
false
Tipos
boolean

Components.NavigationDrawers.

Nome
temporary
Padrão
false
Tipos
boolean

Components.NavigationDrawers.

Nome
touchless
Padrão
false
Tipos
boolean

Components.NavigationDrawers.

Nome
value
Padrão
undefined
Tipos
any

Controla visibilidade

Nome
width
Padrão
300
Tipos
number | string

A largura do conteúdo

Exemplos

Colored drawer

Navigation drawers can be customized to fit any application's design. While any component can be used within a drawer, the primary ones you will use are v-list, all of the list children components and v-divider

Permanent floating drawer

A navigation drawer can be placed inside of a card and float over the content background.

Avatars

Since drawers support the v-list component, you can easily create customized dashboard solutions.

Mini

The navigation drawer also has a mini-variant which can be controlled using the prop mini-variant.sync.

Temporary

A temporary drawer sits above its application and uses a scrim (overlay) to darken the background. This drawer behavior is mimicked on the persistent drawer when on mobile. Clicking outside of the drawer will cause it to close.

Dark theme

Vuetify also supports the dark application theme. This will not override components that have default themes so in some cases it will be necessary to manually set the dark theme accents.

Combined drawers

Drawers are flexible and are easily adapted to any use-case.

Nested lists

List tiles can be nested a second level for even more options for your navigation

Edit this page | language on Github
Vuetify 3 is now available!The latest version of Vuetify is now available!
Learn about Vuetify 3's new features and functionality for modern Vue applications
Start exploringExplore