Skip to content

Latest commit

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date

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';<TabsclassName="accordion-tabs-minimal"active="second"><Tabname="first">
hey
</Tab><Tabname="second"style={{background: 'yellow'}}>
whats up
</Tab><Tabname="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.

About

tabs, done right

Resources

Stars

14 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages