https://github.com/legitcode/tabs
tabs, done right
https://github.com/legitcode/tabs
Last synced: 6 months ago
JSON representation
tabs, done right
- Host: GitHub
- URL: https://github.com/legitcode/tabs
- Owner: Legitcode
- Created: 2015-09-08T21:58:23.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-10-11T23:54:30.000Z (over 8 years ago)
- Last Synced: 2024-11-24T09:34:25.636Z (about 1 year ago)
- Language: JavaScript
- Homepage: http://legitcode.github.io/tabs/
- Size: 874 KB
- Stars: 14
- Watchers: 7
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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.