1.0.5 • Published 6 years ago
@khoatran1996/tabs v1.0.5
Tabs
Simple Tabs component

Usage
API
- Tabs
| Properties | Description | Required |
|---|---|---|
| activeTab | Default active Tab | False |
- TabPane
| Properties | Description | Required |
|---|---|---|
| tab | Name of Tab | True |
Code
export default class App extends Component {
constructor(props) {
super(props);
}
render() {
return (<Tabs activeTab={"Tab2"}>
<TabPane tab="Tab1">
Hello this is Tab1
</TabPane>
<TabPane tab="Tab2">
Hello this is Tab2
</TabPane>
<TabPane tab="Tab3">
Hello this is Tab3
</TabPane>
</Tabs>);
}
};