custom-menu-builder
v0.1.12
Published
## Features
Downloads
2
Readme
custom-menu-builder
Features
- Creating a custom menu builder using dropdowns and nested child options
Installation
npm i custom-menu-builder
Stylesheets
- 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 string
argument and returns void
. |