npm.io
25.2.8 • Published 1 week ago

@vaadin/menu-bar

Licence
Apache-2.0
Version
25.2.8
Deps
10
Size
117 kB
Vulns
0
Weekly
0
Stars
579

@vaadin/menu-bar

A web component for creating a horizontal button bar with hierarchical drop-down menus.

Documentation + Live Demo

npm version

<vaadin-menu-bar></vaadin-menu-bar>

<script>
  document.querySelector('vaadin-menu-bar').items = [
    { text: 'View' },
    { text: 'Edit' },
    {
      text: 'Move',
      children: [{ text: 'To folder' }, { text: 'To trash' }],
    },
    { text: 'Duplicate' },
  ];
</script>

Screenshot of vaadin-menu-bar

Installation

Install the component:

npm i @vaadin/menu-bar

Once installed, import the component in your application:

import '@vaadin/menu-bar';

Contributing

Read the contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.

License

Apache License 2.0

Vaadin collects usage statistics at development time to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.

Keywords