8000 GitHub - zbyte64/tabs: tabs, done right
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

zbyte64/tabs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##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
  • anything else you'd like to set on the tab's containing div.

About

tabs, done right

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.4%
  • HTML 3.6%
0