# @mistong/eui-tab

> EUI component template

Latest version **0.1.7** (published 2018-10-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mistong/eui-tab
pnpm add @mistong/eui-tab
yarn add @mistong/eui-tab
bun add @mistong/eui-tab
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.7 |
| Published | 2018-10-30 |
| First published | 2018-08-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 166.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | mistong eui team |
| Maintainers | ejayyoung, koshi, tellmepz, yukap |
| Keywords | react, react-component, eui |

## Links

- npm: https://www.npmjs.com/package/@mistong/eui-tab
- Repository: https://github.com/MST-EUI/EUI-component-tpl
- Issues: https://github.com/MST-EUI/EUI-component-tpl/issues
- npm.io page: https://npm.io/package/@mistong/eui-tab

## Dependencies (4)

- [rc-tabs](https://npm.io/package/rc-tabs.md) ^5.9.2
- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [prop-types](https://npm.io/package/prop-types.md) ^15.6.2
- [@mistong/eui-css](https://npm.io/package/@mistong/eui-css.md) ^0.1.10

## 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

- 0.1.7 (latest) — 2018-10-30
- 0.1.6 — 2018-10-23
- 0.1.5 — 2018-10-23
- 0.1.4 — 2018-10-17
- 0.1.3 — 2018-10-17
- 0.1.2 — 2018-08-29
- 0.1.1 — 2018-08-29
- 0.1.0 — 2018-08-21

## README

# eui-tab

eui tab component 

## Usage
```js

import React from 'react';
import ReactDOM from 'react-dom';
import { Tabs, TabPane }  from 'eui-tab';
function callback(key) {
   console.log(key);
}

ReactDOM.render(
      <Tabs defaultActiveKey="1" onChange={callback}>
            <TabPane tab="tab1" key="1">tab1 content</TabPane>
            <TabPane tab="tab2" key="2">tab2content</TabPane>
            <TabPane tab="tab3" key="3">tab3 content</TabPane>
      </Tabs>,
    document.getElementById('app')
);
```
## API
Tabs

---

keys | type |default | description
---|---|---|---
activeKey|String|null|当前激活选项key
defaultActiveKey|String|first active tabPane key | 设置默认选项
onChange|function( key:String) :void|切换回调
disabled | Boolean| false|是否禁用该选项
tabBarExtraContent|React Node||额外的元素 在tab右侧
type|line、card|line |选项卡模式 是否选择卡片模式

---

TabPane

---

keys | type |default | description
---|---|---|---
key|Object||当前激活key 唯一
tab |React.Node或者String| null |tab选项标题显示内容

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