Backstage React tabs component
$ npm install backstage-tabs --save
tabs
: Array of objects to set all tab items of Tabs component:label
: label displayed on the tab,value
: the identifier of the tab.
activeTab
: current active tab;
onClickTab
: callback called when the user clicks any tab;className
: custom CSS class to the component;large
: shows the component in a large size;small
: shows the component in a small size;
import React from 'react';
import { render } from 'react-dom';
import Dropdown from 'backstage-tabs';
const TABS = [
{value: "grape", label: "Grape"},
{value: "apple", label: "Apple"},
{value: "mango", label: "Mango"},
{value: "tangerine", label: "Tangerine"},
];
render(<Tabs options={TABS} activeTab='grape' />, document.getElementById('container'));