An open API service indexing awesome lists of open source software.

https://github.com/legitcode/tabs

tabs, done right
https://github.com/legitcode/tabs

Last synced: 6 months ago
JSON representation

tabs, done right

Awesome Lists containing this project

README

          

##Tabs

A basic tabs component, with a few customizable props.

##Install

`npm install legit-tabs`

##Example

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


hey


whats up


hello

~~~

##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.