Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

react-bb-tab

1.0.5 • Public • Published

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

Install

npm i react-bb-tab

DownloadsWeekly Downloads

13

Version

1.0.5

License

MIT

Unpacked Size

26.1 kB

Total Files

6

Last publish

Collaborators

  • avatar