@firstfeb/menu
v4.0.9
Published
Render a responsive menu
Downloads
17
Readme
Menu
Responsive SPA menu.
Installing
Using npm:
$ npm install @firstfeb/menu
Example
import Menu from '@firstfeb/menu';
// Set items
let menuItems = [{
title: "Home",
icon: <svg>...</svg>, // Use fill="currentColor" to make the svg blend in better
url: "/"
},{
title: "Help",
pushDown: true, // Pushes this item down using margin-top: auto
icon: <svg>...</svg>,
url: "/help"
},{
title: "Logout",
icon: <svg>...</svg>,
url: "/logout"
}];
// Render
<Menu items={menuItems}/>
Copyright
Copyright (c) 2019-present First Feb AB
Licence
No licence available. Do not use without the permission of the author.