# react-sidebarjs

> Create mobile sidebar/sidenav experiance in pure javascript

Latest version **1.0.1** (published 2018-02-12) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install react-sidebarjs
pnpm add react-sidebarjs
yarn add react-sidebarjs
bun add react-sidebarjs
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-02-12 |
| First published | 2018-02-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 1.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Lorenzo D'Ianni |
| Maintainers | lorenzodianni |
| Keywords | sidebar, sidenav, javascript, sidebarjs, react |

## Links

- npm: https://www.npmjs.com/package/react-sidebarjs
- Repository: https://github.com/SidebarJS/react-sidebarjs
- Homepage: https://github.com/SidebarJS/react-sidebarjs#readme
- Issues: https://github.com/SidebarJS/react-sidebarjs/issues
- npm.io page: https://npm.io/package/react-sidebarjs

## Dependencies (3)

- [react](https://npm.io/package/react.md) ^16.2.0
- [sidebarjs](https://npm.io/package/sidebarjs.md) ^5.0.0
- [prop-types](https://npm.io/package/prop-types.md) ^15.6.0

## 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.0.1 (latest) — 2018-02-12
- 1.0.0 — 2018-02-12

## README

# React SidebarJS
Create mobile sidebar/sidenav experiance in react.

```ssh
npm install react-sidebarjs --save
```

## Demo
*Open the demo on your device and try the touch gestures!*

* [RawGit](https://rawgit.com/SidebarJS/react-sidebarjs/master/demo/build/index.html)

## Import
```js
import {SidebarJS, sidebarService} from 'react-sidebarjs';
```

## Implementation

```js
import {SidebarJS, sidebarService} from 'react-sidebarjs';
import {NavLink} from 'react-router-dom';

<SidebarJS sidebarjsName="MainSidebar">
  <h3>React SidebarJS</h3>
  <nav>
    <NavLink
      to="/home"
      onClick={() => sidebarService.close('MainSidebar')}>
      Home 
    </NavLink>
  </nav>
</SidebarJS>
```

## API

```js
<SidebarJS
  sidebarjsName={/* string */}
  sidebarjsConfig={/* SidebarConfig | See: https://github.com/SidebarJS/sidebarjs#options */}
  onOpen={() => void}
  onClose={() => void}
  onChangeVisibility={(changes: {isVisible: boolean}) => void}>
</SidebarJS>
```

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