How to use the @mui-treasury/components/menuItem/MenuToggle.getOverrides function in @mui-treasury/components

To help you get started, we’ve selected a few @mui-treasury/components examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github siriwatknp / mui-treasury / packages / mui-components / src / menuList / NestedMenuList / NestedMenuList.js View on Github external
const calculatedProps = injectItemProps(params);
      const nextLevel = level + 1;
      const menu = (
         (
            
          )}
          {...MenuToggle.getOverrides(css, props)}
        />
      );
      if (subMenus) {
        return (
          <li>
            {menu}
            {subMenus &amp;&amp; (
              
                {/* eslint-disable-next-line no-use-before-define */}
                {renderList(subMenus, nextLevel, [key, ...keyPath])}
              
            )}
          </li>
        );
      }
      return menu;

@mui-treasury/components

MIT
Latest version published 4 years ago

Package Health Score

56 / 100
Full package analysis