3.4.4 • Published 6 years ago

react-mob-menu v3.4.4

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

React Mobile Menu

Note:

  • You can see the work on the MobMenu component with a screen width of <= 760px.
  • Styles and media queries can be changed in a file node_modules/react-mob-menu/lib/index.css

Installation

yarn

yarn add react-mob-menu

or npm

npm install --save react-mob-menu

and react-router-dom

yarn add react-router-dom

Example

import React, { Component } from 'react';
import { BrowserRouter as Router } from 'react-router-dom'
import MobMenu from 'react-mob-menu';

class App extends Component {
  render() {
    const options = [
        {
            text: 'Home',
            path: '/',
            id: 1
        },
        {
            text: 'Portfolio',
            path: '/portfolio',
            id: 2
        },
        {
            text: 'About',
            path: '/about',
            id: 3
        },
        {
            text: 'Test',
            path: '/test',
            id: 4
        }
    ];
    return (
      <Router>
        <MobMenu options={options} />
      </Router>
    );
  }
}

export default App;
3.4.4

6 years ago

3.3.4

6 years ago

3.3.3

6 years ago

2.3.3

6 years ago

2.2.3

6 years ago

1.2.3

6 years ago

1.1.3

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago