# menu-appco

> A styled closeable menu for React apps

Latest version **1.1.1** (published 2019-07-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install menu-appco
pnpm add menu-appco
yarn add menu-appco
bun add menu-appco
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2019-07-10 |
| First published | 2019-03-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 105.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Joseph |
| Maintainers | appreciateco |
| Keywords | side menu, closeable menu, navigation, menu, react |

## Links

- npm: https://www.npmjs.com/package/menu-appco
- npm.io page: https://npm.io/package/menu-appco

## Dependencies (4)

- [react](https://npm.io/package/react.md) ^16.7.0
- [eslint](https://npm.io/package/eslint.md) ^5.5.0
- [nodemon](https://npm.io/package/nodemon.md) ^1.18.4
- [react-dom](https://npm.io/package/react-dom.md) ^16.4.2

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2019-07-10
- 1.1.0 — 2019-07-09
- 1.0.2 — 2019-04-16
- 1.0.1 — 2019-03-19
- 1.0.0 — 2019-03-18

## README

#Menu-AppCo is a full featured menu component.

######Installation

```
npm install menu-appco
```

######Usage

```
import React from "react";
import { Menu, MenuButton } from "menu-appco";
import MyMenu from "./MyMenu";

class App extends React.Component {
  constructor(props) {
    super(props);
    this.state = { showUserMenu: false };
    this.toggleUserMenu = this.toggleUserMenu.bind(this);
  }

  toggleUserMenu() {
    if (this.state.showUserMenu === true) {
      this.setState({ showUserMenu: false });
    } else {
      this.setState({ showUserMenu: true });
    }
  }

  render() {
    return (
      <>
        <MenuButton style={{ bordercolor: "grey" }}
            barStyle={{backgroundColor: "black"}}
            onClick={this.toggleUserMenu}
        </>

        {this.state.showUserMenu ? (
          <EB comp="UserMenu in User.js">
            <>
              <Menu
                showMenu={this.state.showUserMenu}
                closeHandler={this.toggleUserMenu}
                style={
                  // insert a style object here
                  // that follows this structure.
                  // the menu will respond accordingly
                  // const style = {
                        open: {[properties...]},
                        closed: {[properties...]}
                  }
                }
              >
                <UserMenu
                  showUserMenu={this.toggleUserMenu}
                  style={{
                    //these are all the style options and their default settings.
                    //you can specify as many as needed or none at all.
                    float: "right",
                    padding:  "10px",
                    cursor:  "pointer"
                    }}
                  closeHandler={this.toggleUserMenu}
                  logout={this.props.logout}
                  user={this.props.user}
                />
              </Menu>
            </>
          </EB>
        ) : null}
    )
  }
}

export default App;

```

---
_Source: https://npm.io/package/menu-appco · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
