1.0.12 • Published 6 years ago

@crpt/react-tabs v1.0.12

Weekly downloads
5
License
MIT
Repository
github
Last release
6 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

6 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago