1.0.12 • Published 7 years ago

@crpt/react-tabs v1.0.12

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

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)}  />
PropNameDescriptionExample
tabs: Array (Required)Tabs configuration.<Tabs tabs={{id: 1, title: "Tab 1"}, {id: 2, title: "Tab 2"}} />
selectedId: NumberID of selected tab.<Tabs tabs={{id: 1, title: "Tab 1"}, {id: 2, title: "Tab 2"}} selectedId={2} />
onSelect: FunctionCallback for tab select event.<Tabs tabs={{id: 1, title: "Tab 1"}, {id: 2, title: "Tab 2"}} onSelect{val => console.log(val)} />
fillWidth: BooleanFills width of container.
1.0.12

7 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago