react-editable-nested-menu

0.0.10 • Public • Published

This package offers a nested editable menu with different levels of nesting and customization. Give a star on github if you like the package.

Demo

https://react-demo-menu.herokuapp.com/

Features

  • Based on Hooks
  • Responsive
  • Easy to implement
  • Custom titles
  • Validation
  • Custom Currencies
  • Customization
  • Different levels of nesting
  • Basic initial input
  • Read and edit mode
  • Classes For customization
  • Draggable(to be implemented)

Installation

Npm $ npm install react-editable-nested-menu

Yarn $ yarn add react-editable-nested-menu

Props

Props Available Default
defaultMode 'read' | 'edit' read
defaultList array []
title string 'Nested Editable Tree'
currency string 'Rs'
firstLevelTitleColor string 'black'
secondLevelTitleColor string 'grey'
thirdLevelTitleColor string 'grey'
firstLevelTitle string 'Menu'
secondLevelTitle string 'Category'
thirdLevelTitle string 'Item'
levels 2-3 '3'
secondLevelShouldHaveDetails boolean 'false'
logo string null

Basic Usage

import  NestedEditableTree  from  'react-editable-nested-menu';

    <NestedEditableTree
    getValueOnSave={list  => {
    console.log(list);
    }}
    />

Screenshots

Read Mode:

Two Level

Two Level Read

Three Level

Three Level Read

Edit Mode:

Two Level

Two Level Edit

Three Level

Three Level Edit

Keywords

react | react-menu | nested-editable-menu | react-nested-editable-menu

Package Sidebar

Install

npm i react-editable-nested-menu

Weekly Downloads

5

Version

0.0.10

License

MIT

Unpacked Size

460 kB

Total Files

3

Last publish

Collaborators

  • yahyawasim97