0.1.12 • Published 2 years ago
custom-menu-builder v0.1.12
custom-menu-builder
Features
- Creating a custom menu builder using dropdowns and nested child options
Installation
npm i custom-menu-builderStylesheets
- Bootstrap (Bootstrap CDN)
- Font Awesome (Font Awesome CSS)
- Font Awesome Solid (Solid CSS)
- Font Awesome Brands (Brands CSS)
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
| Property | Type | Default | Required | Purpose | 
|---|---|---|---|---|
| handleChange | (menuString: string) => void | Yes | A function to handle menu string changes. Takes a stringargument and returnsvoid. |