# react-tab-selector

> React tab selector component

Latest version **0.4.8** (published 2021-12-22) · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.8 |
| Published | 2021-12-22 |
| First published | 2021-12-21 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 11 |
| Unpacked size | 7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Yasu Flores |
| Maintainers | carlosyasu91 |

## Links

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

## Dependencies (11)

- [react](https://npm.io/package/react.md) ^17.0.2
- [react-dom](https://npm.io/package/react-dom.md) ^17.0.2
- [classnames](https://npm.io/package/classnames.md) ^2.3.1
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [web-vitals](https://npm.io/package/web-vitals.md) ^2.1.2
- [react-scripts](https://npm.io/package/react-scripts.md) 5.0.0
- [@babel/polyfill](https://npm.io/package/@babel/polyfill.md) ^7.12.1
- [react-styleguidist](https://npm.io/package/react-styleguidist.md) ^11.1.7
- [@testing-library/react](https://npm.io/package/@testing-library/react.md) ^12.1.2
- [@testing-library/jest-dom](https://npm.io/package/@testing-library/jest-dom.md) ^5.16.1
- [@testing-library/user-event](https://npm.io/package/@testing-library/user-event.md) ^13.5.0

## Recent versions

- 0.4.8 (latest) — 2021-12-22
- 0.4.7 — 2021-12-22
- 0.4.6 — 2021-12-22
- 0.4.5 — 2021-12-21
- 0.4.4 — 2021-12-21
- 0.4.3 — 2021-12-21
- 0.4.2 — 2021-12-21
- 0.4.1 — 2021-12-21
- 0.4.0 — 2021-12-21
- 0.3.0 — 2021-12-21
- 0.2.0 — 2021-12-21
- 0.1.0 — 2021-12-21

## README

# React Tab Selector

## Steps to publish a new version to the NPM registry

1. Run `npm run build`.
2. Verify files have changed with `git status`.
3. Run `npm publish`.

## Getting started

1. Inside your project, run `npm install --save react-tab-selector`.

2. Use the component:

```jsx
import { TabSelector } from 'react-tab-selector';


const MyComponent = () => {
  return <div>
    <TabSelector
      tabs={[
        {
          title: 'All',
          onClick: () => alert('Clicked All')
        },
        {
          title: 'Gaming',
          onClick: () => alert('Clicked Gaming')
        },
        {
          title: 'Photography',
          onClick: () => alert('Clicked Photography')
        }
      ]}
    />
  </div>
}
```

Here's what this example would look like:

![TabSelector example](assets/tab-selector.png)

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