1.0.1 • Published 7 years ago

amos-permission v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

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

Test Case