@crpt/react-tabs

1.0.12 • Public • Published

react-tabs

Travis npm package Coveralls

Tabs component.

Usage

import { Tabs } from  "@crpt/react-tabs";


<Tabs tabs={[{id: 1, title: "Tab 1"}, {id: 2, title: "Tab 2"}]} selectedId={2} onSelect{val => console.log(val)}  />
PropName Description Example
tabs: Array (Required) Tabs configuration. <Tabs tabs={[{id: 1, title: "Tab 1"}, {id: 2, title: "Tab 2"}]} />
selectedId: Number ID of selected tab. <Tabs tabs={[{id: 1, title: "Tab 1"}, {id: 2, title: "Tab 2"}]} selectedId={2} />
onSelect: Function Callback for tab select event. <Tabs tabs={[{id: 1, title: "Tab 1"}, {id: 2, title: "Tab 2"}]} onSelect{val => console.log(val)} />
fillWidth: Boolean Fills width of container.

Readme

Keywords

Package Sidebar

Install

npm i @crpt/react-tabs

Weekly Downloads

1

Version

1.0.12

License

MIT

Unpacked Size

70 kB

Total Files

33

Last publish

Collaborators

  • ivanvlado
  • solnik
  • fantik217