0.2.4 • Published 7 years ago

legit-tabs v0.2.4

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

##Tabs

A basic tabs component, with a few customizable props.

##Install

npm install legit-tabs

##Example

import {Tabs, Tab} from 'legit-tabs';

<Tabs className="accordion-tabs-minimal" active="second">
  <Tab name="first">
    hey
  </Tab>
  <Tab name="second" style={{background: 'yellow'}}>
    whats up
  </Tab>
  <Tab name="third" className="test">
    hello
  </Tab>
</Tabs>

##Props

Tabs:

  • active: Name of the tab you want to be active, defaults to the first one if empty
  • anything else you'd like to set on the containing ul

Tab:

  • name: a unique name for the tab, represents the tab title.
  • liClass, liStyle: class on the li for the tab.
  • contentClass: class on the div that holds the tab content.
  • anything else you'd like to set on the tab's containing div.
0.2.4

7 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.1

9 years ago