Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

imenu

Zlatov10MIT1.2.1

Nested menu.

css menu, nested menu

readme

IMenu

Install

yarn add imenu

Usage

No sass settings

import "imenu/dist/css.css"

Using your settings for the menu

import "./custom-imenu.scss"
// ./custom-imenu.scss
// Imenu custom settings
$imenu_width: 100px;
$imenu_nested_width: 200px;
$imenu_background_color: red;
$imenu_hover_background_color: black;
$imenu_current_background_color: black;
$imenu_border_color: red;
$imenu_color: white;
$imenu_border_radius: 0;

// Imenu styles
@import "imenu/src/sass.scss";

Development

Run both webpack processes:

  1. ./bash/build.sh — compiling src to dist;
  2. ./bash/test.sh — build in test/public.

License

MIT License.