Name: tabs
Owner: Legitcode
Description: tabs, done right
Created: 2015-09-08 21:58:23.0
Updated: 2017-11-06 23:03:07.0
Pushed: 2017-10-11 23:54:30.0
Homepage: http://legitcode.github.io/tabs/
Size: 895
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A basic tabs component, with a few customizable props.
npm install legit-tabs
rt {Tabs, Tab} from 'legit-tabs';
s className="accordion-tabs-minimal" active="second">
ab name="first">
hey
Tab>
ab name="second" style={{background: 'yellow'}}>
whats up
Tab>
ab name="third" className="test">
hello
Tab>
bs>
Tabs:
active
: Name of the tab you want to be active, defaults to the first one if emptyTab:
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.