Menu

Examples

veritcal with icons

<dv-artboard class="py-4 bg-transparent">
  <dv-menu class="shadow-lg rounded-lg dv-bgbase100">
    <dv-menu-item asTitle> Menu title </dv-menu-item>
    <dv-menu-item> Item without icon </dv-menu-item>
    <dv-menu-item>
      <IconHeart class="mr-2" size="1.25em" />
      Item with icon
    </dv-menu-item>
  </dv-menu>
</dv-artboard>
vue

veritcal with icons and padding. menu-item have border-raidus

<dv-artboard class="py-4 bg-transparent">
  <dv-menu class="p-4 shadow-lg rounded-lg dv-bgbase100">
    <dv-menu-item asTitle> Menu title </dv-menu-item>
    <dv-menu-item> Item without icon </dv-menu-item>
    <dv-menu-item>
      <IconHeart class="mr-2" size="1.25em" />
      Item with icon
    </dv-menu-item>
  </dv-menu>
</dv-artboard>
vue

bordered, hover-bordered, disabled

<dv-artboard class="py-4 bg-transparent">
  <dv-menu class="shadow-lg rounded-lg dv-bgbase100">
    <dv-menu-item asTitle> Menu title </dv-menu-item>
    <dv-menu-item disabled> Item is diabled </dv-menu-item>
    <dv-menu-item bordered> Item is bordered </dv-menu-item>
    <dv-menu-item hover-bordered> Item is hover bordered </dv-menu-item>
    <dv-menu-item active> Item is active </dv-menu-item>
  </dv-menu>
</dv-artboard>
vue

horizontal

<dv-artboard class="py-4 bg-transparent">
  <dv-menu class="shadow-lg rounded-lg dv-bgbase100" horizontal>
    <dv-menu-item disabled> Item is diabled </dv-menu-item>
    <dv-menu-item bordered> Item is bordered </dv-menu-item>
    <dv-menu-item active> Item is active </dv-menu-item>
  </dv-menu>
</dv-artboard>
vue

icon

<dv-artboard class="py-4 bg-transparent">
  <dv-menu class="shadow-lg rounded-lg dv-bgbase100 text-2xl mb-4">
    <dv-menu-item> <IconLogoGithub /> </dv-menu-item>
    <dv-menu-item> <IconCode /> </dv-menu-item>
    <dv-menu-item> <IconHeart /> </dv-menu-item>
  </dv-menu>

  <dv-menu class="shadow-lg rounded-lg dv-bgbase100 text-2xl" horizontal>
    <dv-menu-item> <IconLogoGithub /> </dv-menu-item>
    <dv-menu-item> <IconCode /> </dv-menu-item>
    <dv-menu-item> <IconHeart /> </dv-menu-item>
  </dv-menu>
</dv-artboard>
vue

Menu

Attributes

namedescriptiontypedefault
compactmakes menu more compactboolean-
horizontalmakes menu list horizontalboolean-

MenuItem

Attributes

namedescriptiontypedefault
asTitlemakes menu item to be titleboolean-
disableddisabled statusboolean-
borderedbordered statusboolean-
hoverBorderedhover-bordered statusboolean-
activemenu item active status(only when child is anchor element works)boolean-
childWrapperchild wrap element, when asTitle then it will be span, otherwise it will be aa, span, false-