@hixme-ui/tabs
v2.2.0
Published
hixme-ui Tabs component
Downloads
40
Readme
Tabs
Installation
npm i --save @hixme-ui/tabs
Usage
import Tabs from '@hixme-ui/tabs'
const tabsArray = [{
name: 'Some tab name 1',
content: <SomeComponent {...stuff} />
},{
name: 'Some tab name 2',
content: <SomeOtherComponent {...stuff} />
}]
<Tabs blue id='uniqueString' list={tabsArray} initWithIndex={1} />
Props
tabStyles={{ blue: true, width: '200px', marginBottom: '40px' }}
| Name | Type | Default | | --------------- | ----------- | -------------- | | id | string | N/A | | list | array | N/A | | initWithIndex | number | 0 | | tabStyles | object | N/A |