Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@meveo-org/mv-menu

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@meveo-org/mv-menu

MvMenu is a Meveo menu component (based on lit-element) that provides menu with sub menus.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
2
Created
Source

mv-menu

MvMenu is a Meveo menu component (based on lit-element) that provides menu with sub menus.

Features

  • Arbitrary sub-menu levels
  • Shortcut text
  • Written in vanila javascript
  • Can render custom dropdown and notification

Dependencies

  • mv-click-away

Quick Start

To experiment with the MvMenu component.

  • Clone this repo.

  • Serve the project from the root directory with some http server (best served with meveo itself)

  • Sample menu usage is included in the demo.js

The mv-menu has 3 type variants:

default, dropdown, and notification 

Sample usage

  • dropdown
<mv-menu type="dropdown">      
   <mv-menu text="">
       <span slot="title">                            // title slot
           <div class="dropdown">
               <div class="avatar">ma</div>
               <div class="title">meveo.admin</div>
               <mv-fa icon="caret-down"></mv-fa>
           </div>
       </span>
       <mv-menu 
           text="Profile Setttings"
           @submenu-clicked="${this.clickLink}"       // links and actions to be dispatched when menu items are clicked
       ></mv-menu>  
       <mv-menu text="Log Out"></mv-menu>
   </mv-menu>
</mv-menu>
  • notification
<mv-menu type="notification">
   <mv-menu text="" .showFooter="${false}">  // hide notification's footer
       <span slot="title">                                       // title, footer, body slots
           <mv-fa icon="bell"></mv-fa>
       </span>
       <span slot="footer">
           <span class="footer">View all</span>
       </span>
   </mv-menu>
</mv-menu>

You can also check this demo

Acknowledgements

FAQs

Package last updated on 10 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts