VNavigationDrawer API
name | type | default |
|---|---|---|
boolean
| false | |
Applies position: absolute to the component. | ||
string | number | boolean | false | |
Applies utility border classes to the component. To use it, you need to omit the | ||
boolean
| false | |
When enabled, focus will be trapped within the component’s content, preventing Tab navigation from moving focus outside. Useful for modals, dialogs, and overlays to maintain accessibility. | ||
string | number | undefined | |
Milliseconds to wait before closing component. Only applies to hover and focus events. | ||
string
| undefined | |
Applies specified color to the control - supports utility colors with or without | ||
boolean
| false | |
Prevents the automatic opening or closing of the drawer when resized, based on whether the device is mobile or desktop. | ||
boolean
| false | |
Disables opening of navigation drawer when route changes. | ||
string | number | undefined | |
Designates an elevation applied to the component between 0 and 5. You can find more information on the elevation page. | ||
boolean
| false | |
Collapses the drawer to a rail-variant until hovering with the mouse. | ||
boolean
| false | |
A floating drawer has no visible container (no border-right). | ||
string
| undefined | |
Apply a specific background image to the component. | ||
'top' | 'end' | 'bottom' | 'start' | 'left' | 'right' | 'start' | |
Controls the edge of the screen the drawer is attached to. | ||
boolean
| null | |
Determines the display mode of the component. If true, the component will be displayed in mobile mode. If false, the component will be displayed in desktop mode. If null, will be based on the current mobile-breakpoint | ||
number | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | undefined | |
Sets the designated mobile breakpoint for the component. This will apply alternate styles for mobile devices such as the | ||
boolean
| null | |
The v-model value of the component. If component supports the multiple prop, this defaults to an empty array. | ||
string
| undefined | |
Assign a specific name for layout registration. | ||
string | number | undefined | |
Milliseconds to wait before opening component. Only applies to hover and focus events. | ||
string | number | 0 | |
Adjust the order of the component in relation to its registration order. | ||
boolean
| false | |
The drawer remains visible regardless of screen size. | ||
boolean
| false | |
Clicking outside or pressing esc key will not dismiss the dialog. | ||
boolean
| null | |
Sets the component width to the rail-width value. | ||
string | number | 56 | |
Sets the width for the component when | ||
boolean
| false | |
Captures and keeps focus within the content element when using Tab and Shift+Tab. Recommended to be | ||
string | number | boolean | undefined | |
Designates the border-radius applied to the component. This can be 0, xs, sm, true, lg, xl, pill, circle, and shaped. Find more information on available border radius classes on the Border Radius page. | ||
string | boolean | true | |
Determines whether an overlay is used when a temporary drawer is open. Accepts true/false to enable background, and string to define color. | ||
boolean
| false | |
When true, the drawer will remain visible when scrolling past the top of the page. | ||
string | (new () => any) | FunctionalComponent | 'nav' | |
Specify a custom tag used on the root element. | ||
boolean
| false | |
A temporary drawer sits above its application and uses a scrim (overlay) to darken the background. | ||
string
| undefined | |
Specify a theme for this component and all of its children. | ||
boolean
| false | |
Removes any applied border-radius from the component. | ||
boolean
| false | |
Disable mobile touch functionality. | ||
string | number | 256 | |
Sets the width for the component. | ||
name | type | |
|---|---|---|
[boolean] | ||
Event that is emitted when the component’s model changes. | ||
[boolean] | ||
Event that is emitted when the rail model changes. | ||
Used to determine if the drawer is stuck to the top of the page. | ||
name | default |
|---|---|
rgb(var(--v-theme-surface)) | |
( $navigation-drawer-border-color, $navigation-drawer-border-style, $navigation-drawer-border-width, $navigation-drawer-border-thin-width ) | |
settings.$border-color-root | |
map.get(settings.$rounded, '0') | |
settings.$border-style-root | |
thin | |
0 | |
tools.theme-color('on-surface', var(--v-high-emphasis-opacity)) | |
100% | |
hidden | |
auto | |
0 | |
100% | |
inherit | |
cover | |
inherit | |
touch | |
settings.$border-radius-root | |
.2 | |
4 | |
( $navigation-drawer-background, $navigation-drawer-color ) | |
0.2s | |
box-shadow, transform, visibility, width, height, left, right, top, bottom | |
settings.$standard-easing |