# @bomihooks/use-tabs

> React Hook to implement tab

Latest version **1.0.0** (published 2021-08-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @bomihooks/use-tabs
pnpm add @bomihooks/use-tabs
yarn add @bomihooks/use-tabs
bun add @bomihooks/use-tabs
```

## 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.0.0 |
| Published | 2021-08-15 |
| First published | 2021-08-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Bomi Choi |
| Maintainers | hibomi97 |
| Keywords | react, hooks, tab |

## Links

- npm: https://www.npmjs.com/package/@bomihooks/use-tabs
- Repository: https://github.com/BomiChoi/Bomihooks
- Homepage: https://github.com/BomiChoi/Bomihooks#readme
- Issues: https://github.com/BomiChoi/Bomihooks/issues
- npm.io page: https://npm.io/package/@bomihooks/use-tabs

## 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.0.0 (latest) — 2021-08-15

## README

# @bomihooks/use-tabs

React Hook to implement tab<br>
Example
```javascript
import { useTabs } from "@bomihooks/use-tabs";

const content = [
  {
    tab: "Section 1",
    content: "I'm the content of the Section 1"
  },
  {
    tab: "Section 2",
    content: "I'm the content of the Section 2"
  }
];

export default function App() {
  const { currentItem, changeItem } = useTabs(0, content);
  return (
    <div className="App">
      {content.map((section, index) => (
        <button onClick={() => changeItem(index)}>{section.tab}</button>
      ))}
      <div>{currentItem.content}</div>
    </div>
  );
}
```

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