Liking cljdoc? Tell your friends :D

Styling

You need no CSS. Sub-menu pointer-events and the dropdown caret rotation ship as inline style, so the components render correctly with zero CSS on any MUI version.

Per-item styling

Style a single item with :sx (MUI v5+) or :style on its item map:

{:label "Delete"
 :left-icon (icon :trash)
 :sx {:color "#f78166"}}

Class hooks

For theme-wide rules, target these namespaced classes:

ClassElement
.jnm-menuevery Menu the library renders
.jnm-submenunested sub-menu Menu elements
.jnm-menu-iteman item that opens a sub-menu
.jnm-caret, .jnm-caret-expandedthe dropdown caret

Overriding the caret rotation through a class needs !important, because the rotation is inline.

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close