# react-super-tab

> react tabs component

Latest version **1.1.6** (published 2016-07-07) · ISC license · 0 weekly downloads

## Install

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

## 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.1.6 |
| Published | 2016-07-07 |
| First published | 2016-07-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | lukelin |
| Maintainers | lukelin |
| Keywords | react, tab, tabs |

## Links

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

## Dependencies (2)

- [react](https://npm.io/package/react.md) ^15.2.0
- [react-dom](https://npm.io/package/react-dom.md) ^15.2.0

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 1.1.6 (latest) — 2016-07-07
- 1.1.5 — 2016-07-06
- 1.1.4 — 2016-07-06
- 1.1.3 — 2016-07-06
- 1.1.2 — 2016-07-04
- 1.1.1 — 2016-07-04
- 1.1.0 — 2016-07-03
- 1.0.8 — 2016-07-03
- 1.0.5 — 2016-07-01

## README

# react-tab
react tab component

## Usage

npm install --save react-super-tab

``` javascript
import Tab, { TabTitle, TabPanel } from 'react-super-tab';
```

```` xml
<Tabs>
    <TabTitle to="1">
        tab1
    </TabTitle>
    <TabTitle to="2">
        tab2
    </TabTitle>
    <TabPanel for="1">
        TabPanel1
    </TabPanel>
    <TabPanel for="2">
        TabPanel2
    </TabPanel>
</Tabs>
```

### composite usage
``` xml
<Tabs onSelect={ this.onSelect } activeLinkStyle={ { color: 'red' } } defaultSelectedTab="2">
    <div>
        <TabTitle to="1">
            tab1
        </TabTitle>
    </div>
    <div>
        <TabTitle to="2">
            tab2
        </TabTitle>
    </div>
    <div>
        <TabPanel for="1">
            TabPanel1
        </TabPanel>
    </div>
    <div>
        <TabPanel for="2">
            TabPanel2
        </TabPanel>
    </div>
</Tabs>
```
### nest tab components
``` xml
<Tab defaultSelectedTab="b">
    <TabTitle label="a">
        TabTitle a
    </TabTitle>
    <TabTitle label="b">
        TabTitle b
    </TabTitle>
    <TabTitle label="c">
        TabTitle c
    </TabTitle>
    <TabPanel for="a">
        TabPanel a
    </TabPanel>
    <TabPanel for="b">
        TabPanel b
    </TabPanel>
    <TabPanel for="c">
        <Tab>
            <TabTitle label="a">
                TabTitle a
            </TabTitle>
            <TabTitle label="b">
                TabTitle b
            </TabTitle>
            <TabPanel for="a">
                TabPanel a
            </TabPanel>
            <TabPanel for="b">
                TabPanel b
            </TabPanel>
        </Tab>
    </TabPanel>
</Tab>
```

#### [demo](http://htmlpreview.github.io/?https://github.com/LukeLin/react-tab/blob/master/example.html)

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