@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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.12
    7
    • latest
  • 1.0.0
    1
    • next

Version History

Package Sidebar

Install

npm i @crpt/react-tabs

Weekly Downloads

6

Version

1.0.12

License

MIT

Unpacked Size

70 kB

Total Files

33

Last publish

Collaborators

  • ivanvlado
  • solnik
  • fantik217