0.0.1 • Published 9 years ago
cf-rc-tabs v0.0.1
cf-rc-tabs
react tabs component
Screenshot
install
Feature
Keyboard
- left and up: switch to previous tab
- right and down: switch to next tab
Usage
var Tabs = require('cf-rc-tabs');
var TabPane = Tabs.TabPane;
var callback = function(key){
}
React.render(
(
<Tabs defaultActiveKey="2" onChange={callback}>
<TabPane tab='tab 1' key="1">first</TabPane>
<TabPane tab='tab 2' key="2">second</TabPane>
<TabPane tab='tab 3' key="3">third</TabPane>
</Tabs>
),
document.getElementById('t2'));
API
Tabs
props:
TabPane
props:
Development
npm install
npm start
Example
http://localhost:8000/examples
online example: http://react-component.github.io/tabs/examples/
Test Case
http://localhost:8000/tests/runner.html?coverage
Coverage
License
cf-rc-tabs is released under the MIT license.
0.0.1
9 years ago