@ieremeev/tabs
v1.0.0
Published
The tabs component
Readme
cccisd-tabs
cccisd-tabs provides your a tabs component.
Installation
Run this command:
npm install cccisd-tabs --saveUsage
var Tabs = require('cccisd-tabs');
var MyComponent = React.createClass({
render() {
var tabList = [
{name: 'first', title: 'First', content: 'This is the content for the first tab'},
{name: 'second', title: 'Second', content: 'This is the content for the second tab'},
{name: 'third', title: 'Third', content: 'This is the content for the third tab'},
];
return (
<Tabs tabList={tabList} />
);
},
});Props
tabList - (type: array, default: []) Array with the structure {name: ???, title: ???, content: ???}
saveInHash - (type: boolean, default: false) Save the current tab in the URL hash or not?
Contributing
To contribute:
- Clone repo http://git.3cisd.corp/react-components/cccisd-tabs
- Create your feature branch (
git checkout -b my-new-feature) - Add your changes.
- Commit your changes (
git commit -am 'Added some feature') - Push to the branch (
git push origin my-new-feature) - Create new Merge Request
