Menus Item

Sub menu item.

Usage

Use <VMenusItem /> component to add sub menu.

View Code
<template>
  <VMenus title="Settings">
    <VMenusItem>Account</VMenusItem>
    <VMenusItem shortcut="cmd+e">Settings</VMenusItem>
    <VMenusItem divider />
    <VMenusItem shortcut="cmd+alt+q">Logout</VMenusItem>
  </VMenus>
</template>

Props

PropTypeDefault Value
titlestring''
tostring | RouteLocation''
iconstring``
shortcutstring``
headerstring``
dividerstring``
childrenProps[]``
placementMenuPlacement``
onClickFunction(close: () => void) => void

Event

None.

Types

interface Props {
  to?: string | RouteLocation
  title: string
  icon?: string
  shortcut?: string
  header?: string
  divider?: boolean
  children?: Props[]
  placement?: MenuPlacement
  onClick?: (close: () => void) => void
}