New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-awesome-menus

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-awesome-menus

![Slider](/asset/slide.gif) [Checkout the demo](https://ronal2do.github.io/MenuShapeOverlays)

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

Animated Menu ShapeOverlays

Slider Checkout the demo

Acknowledgments

Based in the awesome work https://tympanus.net/Development/ShapeOverlays/index3.html

Install

yarn add react-awesome-menu react-dom

Usage

import withMenu from 'react-awesome-menu'
const MENU_ITEMS = [
  {
    id: 0,
    label: 'Home',
    // Props received by the HOC are forwarded here
    action: (props) => console.log('Any routing trigger you use'),
  },
  {
    id: 2,
    label: 'News',
    action: (props) => console.log('Any routing trigger you use'),
  },
  {
    id: 3,
    label: 'About',
    action: (props) => console.log('Any routing trigger you use'),
  },
  {
    id: 4,
    label: 'Contact',
    action: (props) => console.log('Any routing trigger you use'),
  },
]

// The HOC will also provide a `toggleMenu` to its child, so you can
// Manipulate the visibility as you wish
const App = withMenu({ items: MENU_ITEMS })(({ toggleMenu }) => (
  <div>
    <p>Hi there</p>
  </div>
))

Contributors

Thanks goes to these wonderful people (emoji key):


Ronaldo Lima

💻

Gabriel Rubens

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

FAQs

Package last updated on 03 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts