vuetify
vuetify copied to clipboard
feat(VNavigationDrawer): add force-expand to override hover expand
Description
Resolves #20591
Allows the drawer to remain visually expanded even when the user is not hovering, without disabling rail mode.
Only applies when expand-on-hover is enabled. Useful for cases like renaming items where a stable expanded view is needed.
Markup:
<template>
<v-app>
<v-main>
<v-navigation-drawer expand-on-hover force-expand rail>
<v-list density="compact" nav>
<v-list-item></v-list-item>
<v-list-item></v-list-item>
<v-list-item></v-list-item>
</v-list>
</v-navigation-drawer>
</v-main>
</v-app>
</template>