1.0.5 • Published 5 years ago

react-bb-tab v1.0.5

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

react-bb-tab

This is a modulable component to render tab nav with some nice features !

NPM JavaScript Style Guide

Install

npm install --save react-bb-tab

Usage

import React, { Component } from 'react'
import {BbTabWrap, BbTab} from 'react-bb-tab'

class Example extends Component {
  sayHello(e, tar) {
    console.log("Tab ID:" + tar.id);
    console.log("Page:" + tar.page);
  }

  render () {
    return (
      <BbTabWrap
        defaultKey="1"
        className="hello"
        tabFunc={this.sayHello}
      >
        <BbTab name="tab 1" id="1" page="10">Hello World</BbTab>
        <BbTab name="tab 2" id="2">123456</BbTab>
        <BbTab name="tab 3" id="3">78910JQK</BbTab>
      </BbTabWrap>
    )
  }
}

License

MIT © BananaBb