release: WRNexusJS 0.2.54
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
component MegaMenu {
|
||||
props {
|
||||
label = "Explore"
|
||||
sections = []
|
||||
class = ""
|
||||
}
|
||||
state open = false
|
||||
view {
|
||||
<div class="wire-mega-menu {class}"><button type="button" class="wire-mega-menu__trigger" aria-expanded="{open}" @click="open = !open">{label}<span aria-hidden="true">⌄</span></button><div data-show="open" class="wire-mega-menu__panel">{#each sections as section}<section><h3>{section.title}</h3><ul>{#each section.items as item}<li><a href="{item.href}">{item.label}</a></li>{/each}</ul></section>{/each}</div></div>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user