<🍔/> A Polymer element for Off-canvas Menu.
Install the component using Bower:
$ bower install hamburguer-menu --save
- Import Web Components' polyfill:
<script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
- Import Custom Element:
<link rel="import" href="bower_components/hamburguer-menu/hamburguer-menu.html">
- Start using it!
<hamburguer-menu>
<menu-item text="link 1"></menu-item>
<menu-item text="link 2"></menu-item>
<menu-item text="link 3"></menu-item>
</hamburguer-menu>
Attribute | Type | Default | Description |
---|---|---|---|
text |
String | link |
Sets the corner text content. |
href |
String | # |
Defines the destination url. |
target |
String | _self |
Defines the hyperlink target. |
Example:
<hamburguer-menu>
<menu-item text="link 1" href="#" target="_blank"></menu-item>
<menu-item text="link 2" href="#" target="_self"></menu-item>
</hamburguer-menu>
Using the webcomponents.js
11+ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
- Install Bower & Polymer-CLI:
$ [sudo] npm install -g bower polymer-cli
- Install local dependencies:
$ bower install
- Start the development server on http://localhost:8080/:
$ polyserve
View docs:
http://localhost:8080/components/hamburguer-menu/
View demo:
http://localhost:8080/components/hamburguer-menu/demo/
To keep better organization of releases we follow the Semantic Versioning 2.0.0 guidelines.
Find on our issues the next steps of the project ;)
Want to contribute? Follow these recommendations.
See Releases for detailed changelog.