0.0.1 • Published 12 months ago
react-menu-manager v0.0.1
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 name | Type | Required? |
---|---|---|
menu_items | menu_item_model[] | true |
set_menu_items | function | true |
menu_item_model model
interface menu_item_model {
id: string;
parent_id: string | null;
title: string;
[key: string]: any;
}
0.0.1
12 months ago