# react_navbar_responsive

> Responsive Navbar Component for React

Latest version **1.2.2** (published 2019-11-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install react_navbar_responsive
pnpm add react_navbar_responsive
yarn add react_navbar_responsive
bun add react_navbar_responsive
```

## 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.2.2 |
| Published | 2019-11-01 |
| First published | 2019-10-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 56.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | King Elisha |
| Maintainers | kingelisha |
| Keywords | React, Navbar, Responsive, Component |

## Links

- npm: https://www.npmjs.com/package/react_navbar_responsive
- Repository: https://github.com/elishaking/react-navbar-responsive
- Homepage: https://github.com/elishaking/react-navbar-responsive#readme
- Issues: https://github.com/elishaking/react-navbar-responsive/issues
- npm.io page: https://npm.io/package/react_navbar_responsive

## Dependencies (5)

- [react](https://npm.io/package/react.md) ^16.10.2
- [node-sass](https://npm.io/package/node-sass.md) ^4.12.0
- [react-dom](https://npm.io/package/react-dom.md) ^16.10.2
- [react-scripts](https://npm.io/package/react-scripts.md) 3.2.0
- [react-router-dom](https://npm.io/package/react-router-dom.md) ^5.1.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.2.2 (latest) — 2019-11-01
- 1.2.1 — 2019-10-30
- 1.2.0 — 2019-10-30
- 1.0.3 — 2019-10-30
- 1.0.2 — 2019-10-30
- 1.0.1 — 2019-10-29
- 1.0.0 — 2019-10-29

## README

# Responsive Navbar

- For React
- Responsive Navbar component

https://www.npmjs.com/package/react_navbar_responsive

## Install

```cmd
npm install react_navbar_responsive --save
```

## Usage

**NOTE: The `Navbar` component must be a child of `Router` if you set `isRoute=true` in any of the `links`**

```javascript
import React from "react";
import { BrowserRouter as Router, Route } from "react-router-dom";
import "./App.css";
import Navbar from "./components/Navbar";

function App() {
  return (
    <div className="App">
      {/* NOTE: The Navbar component must be a child of Router if you set isRoute=true in any of the links */}
      <Router>
        <Navbar
          links={[
            {
              to: "/",
              text: "Home"
            },
            {
              to: "/about",
              text: "About",
              isRoute: true
            },
            {
              html: (
                <li>
                  <a href="/contact">Contact</a>
                </li>
              )
            },
            {
              to: "/signin",
              text: "Sign In"
            }
          ]}
        />
        <Route path="/about" exact />
      </Router>
    </div>
  );
}

export default App;
```

## Wide Screen (Desktop) Preview

![Alt text](./desktop.png "Desktop")

## Mobile Preview

![Alt text](./mobile.png "Mobile")

## Project Demo

https://github.com/elishaking/react_navbar_responsive_demo

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