react-animenu

1.0.11 • Public • Published

React Animenu

React Animenu is a lightweight, customizable, animated navigation menu.

Installation

$ npm install react-animenu

Usage

import Menu from 'react-animenu';

<Menu
  buttonColorOpen="blue"
  openIcon="X"
>
  <a href="/">Home</a>
  <a href="/about">About</a>
  <a href="/contact">Contact</a>
</Menu>

Props

Plugin Default Type
buttonColorOpen "yellow" string
buttonColorClosed "#006bba" string
iconTextWhenOpen "Close" string
iconTextWhenClosed "Menu" string
iconTextFont "Comic Sans MS" string
openIcon null string, function, component
closeIcon null string, function, component
menuBackgroundColor "red" string

Development

Want to contribute? Please do!

Todos

  • Write Tests
  • Add custom animations

License

MIT

Package Sidebar

Install

npm i react-animenu

Weekly Downloads

2

Version

1.0.11

License

MIT

Unpacked Size

28.7 kB

Total Files

12

Last publish

Collaborators

  • andycoupe