slak-menu

1.0.2 • Public • Published

slak-menu

A Slak virtual-dom menu component. Renders a horizontal list and highlights the selected menu item.

Import

var Menu = require('slak-menu');

Construct

// Build a menu with the given items
var menu = Menu.Menu([{name:'Zendo'}, {name:'Schedule'}], emit);

Render

// Render a menu component to a hyperscript tree.
var tree = Menu.render(menu);

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i slak-menu

    Weekly Downloads

    0

    Version

    1.0.2

    License

    BSD3

    Last publish

    Collaborators

    • lakowske