Coder Social home page Coder Social logo

magnattic / mui-nested-menu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from webzep/mui-nested-menu

0.0 0.0 0.0 1.32 MB

The package lets you nested menu items infinitely deep.

Home Page: https://mui-nested-menu.vercel.app/

License: MIT License

Shell 0.03% JavaScript 1.09% TypeScript 97.43% CSS 0.84% HTML 0.62%

mui-nested-menu's Introduction

๐Ÿช† Mui Nested Menu

It's not perfect, but it's pretty good.

This package provides components to let you nest menu items infinitely deep. The code is an adaption from this package to work with MUI version 5.

Check out the documentation here.

๐Ÿ“ฆ Install

The code is open source, so you can use the library by copying the src/mui-nested-menu directory to your project (if you'd like to adapt the components) or by installing it via NPM.

$ npm install mui-nested-menu

๐Ÿ›  Exports

The following items and interfaces are exported from the package:

  • NestedDropdown - To create menu bar dropdowns.

  • ContextMenu - For a right-click menu.

  • IconMenuItem - A menu item which can take start and end icons.

  • NestedMenuItem - The actual nested menu component.

  • nestedMenuItemsFromObject({(items, isOpen, handleClose)}) - Utility function which returns a list of menu items from a given array of items in the object format you see in the samples. You can then manually put this inside a <Menu /> component.

  • MenuItemData - An interface for the menuItemsData prop.

๐Ÿ’ป Contributing

Pull requests for [the project](https://github.com/webzep /mui-nested-menu) are more than welcome. Please make sure to stick to the coding style used throughout the project.

  1. Clone the project from GitHub - it is a monorepo.
  2. yarn && yarn start and you should see the docs on localhost:1000.
  3. Create a new branch
  4. Make your changes
  5. Open a pull request

๐Ÿ“ Changelog

Version Breaking Changes
3.0.0 no Support for ESM and CJS modules.
3.1.0 yes Make disabled ans SX props available. Fixes typo nesteMenuItemsFromObjectProps to nestedMenuItemsFromObjectProps.
3.2.0 no Provide event and item in callback.
3.2.1 no @mui/material/styles/styled 4 level import fixed
3.2.2 no Documentation updates

mui-nested-menu's People

Contributors

abelozerov avatar beaverusiv avatar cjsewell avatar datumgeek avatar jraoult avatar tonysepia avatar webzep avatar yashbro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.