# rc-tabs
**Repository Path**: mirrors_fis-components/rc-tabs
## Basic Information
- **Project Name**: rc-tabs
- **Description**: Fork from https://github.com/react-component/tabs.git
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-08
- **Last Updated**: 2026-07-18
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# rc-tabs
---
react tabs component
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![gemnasium deps][gemnasium-image]][gemnasium-url]
[![npm download][download-image]][download-url]
[npm-image]: http://img.shields.io/npm/v/rc-tabs.svg?style=flat-square
[npm-url]: http://npmjs.org/package/rc-tabs
[travis-image]: https://img.shields.io/travis/react-component/tabs.svg?style=flat-square
[travis-url]: https://travis-ci.org/react-component/tabs
[coveralls-image]: https://img.shields.io/coveralls/react-component/tabs.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/react-component/tabs?branch=master
[gemnasium-image]: http://img.shields.io/gemnasium/react-component/tabs.svg?style=flat-square
[gemnasium-url]: https://gemnasium.com/react-component/tabs
[node-url]: http://nodejs.org/download/
[download-image]: https://img.shields.io/npm/dm/rc-tabs.svg?style=flat-square
[download-url]: https://npmjs.org/package/rc-tabs
## Screenshot
## install
[](https://npmjs.org/package/rc-tabs)
## Feature
### Keyboard
* left and up: switch to previous tab
* right and down: switch to next tab
## Usage
```js
var Tabs = require('rc-tabs');
var TabPane = Tabs.TabPane;
var callback = function(key){
}
React.render(
(
| name | type | default | description |
|---|---|---|---|
| activeKey | String | current active tabPanel's key | |
| tabPosition | String | tab nav 's position. one of ['left','right','top','bottom'] | |
| animation | String | tabPane's animation. current only support slide-horizontal in assets/index.css | |
| transitionName | Object | specify backward and forward transitionName. such as ```js { backward:'rc-tabs-slide-horizontal-backward', forward:'rc-tabs-slide-horizontal-forward' } ``` | |
| defaultActiveKey | String | first active tabPanel's key | initial active tabPanel's key if activeKey is absent |
| onChange | Function(key) | called when tabPanel is changed | |
| onTabClick | Function(key) | called when tab is clicked | |
| tabBarExtraContent | React Node | extra content placed one the right of tab bar | |
| destroyInactiveTabPane | Boolean | false | whether destroy inactive tabpane when change tab |
| name | type | default | description |
|---|---|---|---|
| key | Object | corresponding to activeKey | |
| tab | String | current tab's title corresponding to current tabPane |