0.1.12 • Published 7 months ago

custom-menu-builder v0.1.12

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

custom-menu-builder

Features

  • Creating a custom menu builder using dropdowns and nested child options

Installation

npm i custom-menu-builder

Stylesheets

Uses

import React from "react";

import MenuEditor from "custom-menu-builder";

function App() {
  return (
    <div className="App">
      <MenuEditor
        handleChange={(data) => {
          console.log(data);
        }}
      />
    </div>
  );
}

export default App;

MenuEditor

PropertyTypeDefaultRequiredPurpose
handleChange(menuString: string) => voidYesA function to handle menu string changes. Takes a string argument and returns void.