# rc-tabs-component

> Simple React Tabs component with 4 different styles including Materialize and Bootstrap

Latest version **1.0.7** (published 2021-12-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install rc-tabs-component
pnpm add rc-tabs-component
yarn add rc-tabs-component
bun add rc-tabs-component
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2021-12-09 |
| First published | 2021-12-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Leonid Gaidarenko |
| Maintainers | leogaidarenko |
| Keywords | react, react-tabs, react-component, simple-react-tabs |

## Links

- npm: https://www.npmjs.com/package/rc-tabs-component
- Repository: https://github.com/leonid1976/rc-tabs-component
- Homepage: https://github.com/leonid1976/rc-tabs-component#readme
- Issues: https://github.com/leonid1976/rc-tabs-component/issues
- npm.io page: https://npm.io/package/rc-tabs-component

## 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.7 (latest) — 2021-12-09
- 1.0.5 — 2021-12-09
- 1.0.4 — 2021-12-08
- 1.0.3 — 2021-12-08
- 1.0.2 — 2021-12-08

## README

# rc-tabs-component

### Simple React Tabs component with 4 different styles including Materialize and Bootstrap

## Feature

4 differnt styles.
rc-tabs-components can render conponents and plain JSX

## install

```bash
yarn add rc-tabs-component
```

or

```bash
npm install --save rc-tabs-component
```

## Basic Example

```js

import Tabs  from 'rc-tabs-component'



function App() {

  const tags = ['TAB 1', 'TAB 2', 'TAB 3', 'TAB 4']; //the array or names of tabs

  const Content1 = () => {
    return (
    //.....//
    )
  }

  const Content2 = () => {
    return (
    //.....//
    )
  }

  return (
    <Tabs tags={tags}
          style_type='material'>
      <Content1/>
      <Content2/>
      <div>
        <h3>
          Tab 3 Content
        </h3>
        <p>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
        </p>
      </div>
      <div>
        <h3>
          Tab 4 Content
        </h3>
        <p>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
        eiusmod tempor incididunt ut labore et dolore magna aliqua.
        </p>
      </div>
    </Tabs>
  )
}

```

## Options

**tags** - the array of the names of the tags

**style_type** - defines the styling of the element. Values:

1. material
2. bootstrap
3. button
4. void/default

**material**

<img src='https://github.com/leonid1976/rc-tabs-component/blob/master/screenshots/material.png' width='610'>

**bootstrap**

<img src='https://github.com/leonid1976/rc-tabs-component/blob/master/screenshots/bootstrap.png' width='610'>

**button**

<img src='https://github.com/leonid1976/rc-tabs-component/blob/master/screenshots//button.png' width='610'>

**default**

<img src='https://github.com/leonid1976/rc-tabs-component/blob/master/screenshots/default.png' width='610'>

## License

rc-tabs-component is released under the MIT license.

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