1.1.0 • Published 7 years ago
@schibstedspain/sui-navigation-tabs v1.1.0
NavigationTabs
SUI NavigationTabs
component is a list of tabs.
By clicking on every single tab, a handler is triggered and receives an object with the item information and position in the array.
Installation
$ npm install --save @schibstedspain/sui-navigation-tabs
Usage
import React, { Component } from 'react'
import SpinnerBasic from '@schibstedspain/sui-navigation-tabs'
class MyComponent extends Component {
_handleClick (tab, index) {
// do stuff
}
render () {
return (
<NavigationTabs
handleClick={this._handleClick}
tabsList={tabs}
activeTab={0}
/>
)
}
}
1.1.0
7 years ago