0.1.0 • Published 7 years ago

react-awesome-tabs v0.1.0

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

react-awesome-tabs

Get your components together.

Live demo and get started @react-awesome-tabs.

Documentation

Introduction

react-awesome-tabs uses a 'Redux' way to manage all the things, that is to say there is no 'state' in this component. All the changes are based on 'property'.

Variables

Property NameTypeDescription
activeNumberCurrent active tab index.
draggableBooleanWhen it is true, onTabPositionChange is required as well.
showAddBooleanShow the add button in the right. onTabAdd is required.
colorStringChange the border color.

Functions

Property NameParameterDescription
onTabSwitch(index)Index needs to be actived.
onTabPositionChange(a, b)Switch from index a to index b, and vice versa.
onTabClose(index)Index needs to be closed.
onTabAdd()

Variables

Property NameTypeDescription
titleString
showCloseBoolean
iconString or ComponentAccpetable strings: "loading", "warning", or put your own icon in it.