react-tab-indicator
v1.1.2
Published
A high performance Tabs with indicator based React component
Readme
react-tab-indicator
A High performance Tab with Indicator based React component
Installation
with npm
npm i react-tab-indicatoror with yarn
yarn add react-tab-indicatorUsage
import React from "react";
import ReactTabIndicator from "react-tab-indicator";
<ReactTabIndicator
items={["Japanese", "English", "Chinese"]}
borderColor={"yellow"}
tranfromSpeed={300}
onClick={handleOnClick}
/>;Props
| Name | Type | Required | Description |
| ---------------- | -------------- | -------- | -------------------------------- |
| items | string Array | true | The labels of Tab |
| borderColor | string | false | The color of Indicator |
| borderHeight | number | false | The height of Indicator |
| transformSpeed | number | false | The speed of transform Indicator |
| onClick | Function | true | The funcation when click a Tab |
