npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@jramosg/reagent-mui-nested-menu

v0.1.0

Published

Nested MUI menu components for Reagent/ClojureScript and React. Dropdown, context menu, icons, keyboard navigation. Compatible with MUI v5 through v9.

Readme

reagent-mui-nested-menu

Clojars Project npm cljdoc License: MIT

Nested MUI menus for Reagent/ClojureScript and React: a dropdown, a right-click context menu, per-item icons, custom labels and keyboard navigation. A ClojureScript port of mui-nested-menu by steviebuilds.

  • No CSS to import. Pointer-events and the caret rotation ship inline.
  • MUI v5 to v9. Subpath imports and inline style keep it off any version-specific API.
  • Clojars and npm. One source builds the Reagent jar and the React package.

Live demo →

Example GIF

Install

ClojureScript (Clojars)

Clojure CLI / deps.edn:

io.github.jramosg/reagent-mui-nested-menu {:mvn/version "0.1.0"}

Leiningen / Boot / shadow-cljs.edn:

[io.github.jramosg/reagent-mui-nested-menu "0.1.0"]

React (npm)

npm install reagent-mui-nested-menu

Peer dependencies

MUI and React are peers (you provide them). MUI v5 and v6 need Emotion; v7 and later make it optional.

{
  "peerDependencies": {
    "@mui/material": ">=5 <10",
    "react": ">=17 <20",
    "react-dom": ">=17 <20",
    "@emotion/react": ">=11",
    "@emotion/styled": ">=11"
  }
}

MUI v4 compatibility

The library targets @mui/material (v5+). To use it in a project that only has @material-ui/core (v4), install an npm alias so @mui/material resolves to your existing v4 package:

npm install @mui/material@npm:@material-ui/core@^4 --legacy-peer-deps

This creates node_modules/@mui/material pointing at @material-ui/core, with no duplicate code. Emotion is not required for v4.

Quick start (CLJS)

(ns my.app
  (:require [reagent-mui-nested-menu.core :refer [nested-menu]]))

[nested-menu
 {:button-props {:label "Open"}
  :items [{:label "New file" :callback (fn [_e _item] (prn "new"))}
          {:label "Export"
           :items [{:label "PDF"  :callback (fn [_e _item] (prn "pdf"))}
                   {:label "JSON" :callback (fn [_e _item] (prn "json"))}]}]}]

No CSS import needed.

Documentation

The full guide and the API reference live on cljdoc:

  • Menus from data: components, item maps, nesting, icons, selection and the context menu.
  • React usage: the npm package and JSX examples.
  • Styling: class hooks and per-item styles.

Public API: the single namespace reagent-mui-nested-menu.core.

Development

Build, test, publish and demo instructions live in DEVELOPMENT.md.

Credits

Port of mui-nested-menu by steviebuilds.

License

MIT.