Git Product home page Git Product logo

megamenu's Introduction

MegaMenu

Link to the app - https://menu-v.netlify.app/

How to run the app

  1. Clone the repo
  2. To intall node_modules npm i
  3. To run the app npm run dev

To add more menu items

File - menu.json [src\components\Navbar\data\menu.json]

The menu data is structured as an array of menu items. Each menu item represents a navigation item in the application's menu bar. Menu items can have categories, which further organize the content, and each category may contain subcategories.

Menu Item Properties

  1. id: (number) - Unique identifier for the menu item.
  2. name: (string) - The display name of the menu item.
  3. url: (string) - The URL associated with the menu item.
  4. categories: (array) - Optional. An array containing category objects, if applicable.

Category Properties

  1. id: (number) - Unique identifier for the category.
  2. name: (string) - Optional. The display name of the category (used as heading).
  3. url: (string) - The URL associated with the category.
  4. subcategories: (array) - An array containing subcategory objects, if applicable.

Subcategory Properties

  1. id: (number) - Unique identifier for the subcategory.
  2. name: (string) - The display name of the subcategory.
  3. url: (string) - The URL associated with the subcategory.

Example

[
  {
    "id": 1,
    "name": "Home",
    "url": "/",
    "categories": [
      {
        "id": 11,
        "name": "Main Categories",
        "url": "/main-categories",
        "subcategories": [
          {
            "id": 111,
            "name": "All",
            "url": "/all"
          }
          // Other subcategories...
        ]
      }
    ]
  }
  // Other menu items...
]

Usage

  • Each menu item corresponds to a navigation link in the menu bar.
  • Categories can be used to further organize content within menu items, and subcategories can be nested within categories.
home mob

megamenu's People

Contributors

krgarima avatar

Watchers

 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.