# react-tab-group

> Tab group for React.

Latest version **1.0.1** (published 2015-12-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-tab-group
pnpm add react-tab-group
yarn add react-tab-group
bun add react-tab-group
```

## Health

**Score 5/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score; declining downloads.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-12-01 |
| First published | 2015-11-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| Author | artisan |
| Maintainers | artisan |
| Keywords | tabbar, react |

## Links

- npm: https://www.npmjs.com/package/react-tab-group
- npm.io page: https://npm.io/package/react-tab-group

## Dependencies (6)

- [less](https://npm.io/package/less.md) ^2.5.3
- [react](https://npm.io/package/react.md) ^0.14.0
- [jquery](https://npm.io/package/jquery.md) ^2.1.4
- [gulp-less](https://npm.io/package/gulp-less.md) ^3.0.3
- [react-dom](https://npm.io/package/react-dom.md) ^0.14.0
- [classnames](https://npm.io/package/classnames.md) ^2.2.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) — 2015-12-01
- 1.0.0 — 2015-11-30

## README

## react-tabbar

### Usage
```js
  import React from 'react';
  import ReactDOM from 'react-dom';
  import ReactTabGroup from './react-tabbar.jsx';

  const sections = [
    {
      url: 'mocks/section-1.json',
      params: {
        norce: 'hello'
      }
    },
    {
      url: 'mocks/section-2.json',
      params: {
        norce: 'world'
      }
    },
    {
      url: 'mocks/section-3.json',
      params: {
        norce: 'abcde'
      }
    }
  ];

  ReactDOM.render(<ReactTabGroup sections={sections} onSwitch={(index) => console.log(index)} />, document.getElementById('react-tabbar'));
```

### API
**default**  
type: `Number`  
default: `0`

**buttons**  
type: `Array`  
default: `['button-1', 'button-2', 'button-3']`

**sections**  
type: `Array`  
default: `['section-1', 'section-2', 'section-3']`

**onSwitch**  
type: `Function`  
default: `null`

### LICENSE
MIT

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