Usage
TheVMain component is used to wrap the primary content of your application. It automatically adjusts its padding based on the layout system (app bars, navigation drawers, etc.).
Scrollable
Make the main content area independently scrollable:With Custom Dimensions
Set custom width and height:Props
When enabled, wraps content in a scrollable container allowing independent scrolling of the main content area
Sets the width of the component
Sets the height of the component
Sets the maximum width of the component
Sets the maximum height of the component
Sets the minimum width of the component
Sets the minimum height of the component
Specify a custom tag used on the root element
Slots
The default Vue slot for main content
VMain should be used as a direct child of VApp to properly integrate with Vuetify’s layout system. The component automatically calculates padding based on other layout components like VAppBar and VNavigationDrawer.
When using the
scrollable prop, the content is wrapped in a v-main__scroller div that handles the scrolling behavior.