# react-easy-tabs-component

> This component enables developers to add any content/text or even any component inside tabpanels and by default this component comes with fontawesome icons support

Latest version **1.0.1** (published 2020-10-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-easy-tabs-component
pnpm add react-easy-tabs-component
yarn add react-easy-tabs-component
bun add react-easy-tabs-component
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-10-28 |
| First published | 2020-09-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 15.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | voletiswaroop |
| Maintainers | swaroop.voleti |
| Keywords | react-tabs, react-easy-tabs-component, react-easy-tabs-component-icon, react, tabcomponent, react-tab-component, validation |

## Links

- npm: https://www.npmjs.com/package/react-easy-tabs-component
- Repository: https://github.com/voletiswaroop/react-easy-tabs
- Homepage: https://voletiswaroop.github.io/react-easy-tabs
- Issues: https://github.com/voletiswaroop/react-easy-tabs/issues
- npm.io page: https://npm.io/package/react-easy-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.1 (latest) — 2020-10-28
- 1.0.0 — 2020-09-26

## README

# react-easy-tabs-component

> This component enables developers to add any content/text or even any component inside tabpanels and by default this component comes with fontawesome icons support

[![NPM](https://img.shields.io/npm/v/react-easy-tabs-component.svg)](https://www.npmjs.com/package/react-easy-tabs-component)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save react-easy-tabs-component
```

## Demo

[Click here](http://swaroopvoleti.me/react-easy-tabs/) for Live Demo

## Usage

- User has to import `EasyTabs` from 'react-easy-tabs-component' to use the react-easy-tabs-component component.
- To get default styles import `'react-easy-tabs-component/dist/index.css'` file.

| Prop                                      | Description                                                                               | Default   |
| ----------------------------------------- | ----------------------------------------------------------------------------------------- | --------- |
| [***section***] _[element]_               | User can change the `section` element as per the requirement                              | 'section' |
| [**_CustomComponent_**](#customComponent) | User can import any `customComponent` and that has to be wrapped with `<section>` element |

## Basic Example

```jsx
import React, { Component } from 'react'
import EasyTabs from 'react-easy-tabs-component'
import 'react-easy-tabs-component/dist/index.css'
import CustomComponent from './customComponent'

class Example extends Component {
  render() {
    return (
      <EasyTabs defaultSelected={0}>
        <section dataicon='fas fa-search' title='Tab one'>
          Lorem Ipsum is simply dummy text of the printing and typesetting
          industry. Lorem Ipsum has been the industry's standard dummy text ever
          since the 1500s, when an unknown printer took a galley of type and
          scrambled it to make a type specimen book.
        </section>
        <section dataicon='fas fa-search' title='Tab two'>
          It is a long established fact that a reader will be distracted by the
          readable content of a page when looking at its layout. The point of
          using Lorem Ipsum is that it has a more-or-less normal distribution of
          letters, as opposed to using 'Content here, content here', making it
          look like readable English.
        </section>
      </EasyTabs>
    )
  }
}
```

#### CustomComponent

```jsx
import React, { Component } from 'react'
import EasyTabs from 'react-easy-tabs-component'
import 'react-easy-tabs-component/dist/index.css'
import CustomComponent from './customComponent'

class Example extends Component {
  render() {
    return (
      <EasyTabs defaultSelected={0}>
        <section dataicon='fas fa-search' title='Tab one'>
          Lorem Ipsum is simply dummy text of the printing and typesetting
          industry. Lorem Ipsum has been the industry's standard dummy text ever
          since the 1500s, when an unknown printer took a galley of type and
          scrambled it to make a type specimen book.
        </section>
        <section dataicon='fas fa-search' title='Custom Component'>
          <CustomComponent />
        </section>
      </EasyTabs>
    )
  }
}
```

## Props

| Prop                               | Description                                                           | Default         |
| ---------------------------------- | --------------------------------------------------------------------- | --------------- |
| [***defaultSelected***] _[number]_ | This option allows the users to select `default focus tab`            | 0               |
| [***dataicon***] _[string]_        | This option allows the users to add `font awesome` icon for tab title | 'fas fa-search' |
| [***title***] _[string]_           | This option allows the users to add `title` for the Tab item          |

## Contributing

This is a new project and contributions are welcome so feel free to [open an issue](https://github.com/voletiswaroop/react-easy-tabs-component/issues) or fork and create a pull request. Collaborators are also welcome - please send an email to voleti.swaroop@gmail.com.

## License

MIT © [voletiswaroop](https://github.com/voletiswaroop)

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