@khoatran1996/tabs

1.0.5 • Public • Published

Tabs

Simple Tabs component

Image Screen Shot

Usage

API

  1. Tabs
Properties Description Required
activeTab Default active Tab False
  1. 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>);
    }
};

Package Sidebar

Install

npm i @khoatran1996/tabs

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

268 kB

Total Files

19

Last publish

Collaborators

  • khoatran1996