[](https://www.npmjs.com/package/react-tabs-with-components)
npm install react-tabs-with-components
Using tab with component list
#
``bash`
npm install react-tabs-with-components
`javascript
import React from 'react';
import Tabs from 'react-tabs-with-components';
function Tab1() {
return (
function Tab2() {
return (
const tabs = [
{
title: 'Tab 1',
component:
visible: true
},
{
title: 'Tab 2',
component:
visible: true
}
];
function App() {
return (
export default App;
`
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| deafultValue | int | 0 | Which step will be active at the beginning |
| tabs | array | Required | Component list of steps |
#
`c#``
{
title:
component:
visible:
}
- If the tab is closed, only the visible value is false and the tab is not destroyed.
- "visible" value must be true to open closed tab