1.0.4 • Published 7 years ago
amos-tabs v1.0.4
rc-tabs
amos-tabs component
Screenshot
install
Feature
Keyboard
- left and up: switch to previous tab
- right and down: switch to next tab
- drag: exchange tab nav by ilex.h
Usage
var Tabs = require('amos-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