0.0.9 • Published 5 years ago

react-studio-tabs v0.0.9

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

react-studio-tabs

A minimalistic react tab component that displays content in tabs. Some default stylings are included in the below link

Links


Tabs Props


NameTypeDescriptions
bemClassName?stringMain bem class name
className?stringMain element class name
ulClassName?stringThe class name of the ul list
liClassName?stringThe class name of the list element
contentClassName?stringthe class name of the tab content
initialTab?numberInitial tab to be shown
onInitialTabChange?currentIdx:number)=>voidFunction that is being triggered when the initialTab is changed
afterTabChange?(currentIdx:number, prevIdx:number)=>voidFunction that is being triggered after the index is changed
onTabClicked?(idx?:number, prevIdx?:number)=>voidFunction that is being triggered when the tab indexed is being changed
isSeoFriendly?booleanIf set to true the display of the current tab will be based on css styles instead of render options

Tabs Default Props

NameValue
onTabClicked()=>{}
onInitialTabChange()=>{}
afterTabChange()=>{}
ulClassName""
className""
bemClassName"tabs"
contentClassName""
liClassName""
isSeoFriendlyfalse

Tab Props

NameTypeDescriptions
className?stringTab panel class name
titlestringReact.ReactNodeThe title name of the tab button

Tab Default Props

NameValue
className""

Installation

$ npm install --save react-studio-tabs

Usage

import {Tabs, Tab} from "react-studio-tabs";

Simple Example

<Tabs>
    <Tab title="one">One</Tab>
    <Tab title="two">Two</Tab>
    <Tab title="three">Three</Tab>
    <Tab title="four">Four</Tab>
</Tabs>
0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago