@logo-elements/menu-bar
Version:
A web component for creating a horizontal button bar with hierarchical drop-down menus.
39 lines (28 loc) • 854 B
Markdown
# @logo-elements/menu-bar
A web component for creating a horizontal button bar with hierarchical drop-down menus.
[](https://www.npmjs.com/package/@logo-elements/menu-bar)
```html
<logo-elements-menu-bar></logo-elements-menu-bar>
<script>
document.querySelector('logo-elements-menu-bar').items = [
{ text: 'View' },
{ text: 'Edit' },
{
text: 'Move',
children: [{ text: 'To folder' }, { text: 'To trash' }]
},
{ text: 'Duplicate' }
];
</script>
```
## Installation
Install the component:
```sh
npm i @logo-elements/menu-bar -s
```
Once installed, import the component in your application:
```js
import '@logo-elements/menu-bar';
```
### For more detailed information, please visit:
[Logo Elements Documentation ↗](http://elements.logo.com.tr)