1.0.12 • Published 5 years ago

@crpt/react-tabs v1.0.12

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

5 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago