0.0.1 • Published 12 months ago

react-menu-manager v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

react-menu-manager

Install from the command line:

instead of 1.2.3 you should use your own version npm install react-menu-manager

some times you need to pass '--legacy-peer-deps'

Install via package.json:

instead of 1.2.3 you should use your own version "react-menu-manager": "1.2.3",

Use Example

import React, {useState} from 'react';
import MenuManager from 'react-menu-manager';

Props

Prop nameTypeRequired?
menu_itemsmenu_item_model[]true
set_menu_itemsfunctiontrue

menu_item_model model

interface menu_item_model {
  id: string;
  parent_id: string | null;
  title: string;
  [key: string]: any;
}