DocSpace-buildtools/web/ASC.Web.Components/src/components/tabs-container
2020-02-03 16:01:23 +03:00
..
index.js Web: Components: fixed tabs-container styles 2020-02-03 16:01:23 +03:00
README.md web: Components: Fixed TabContainer component readme 2019-11-21 16:32:20 +03:00
tabs-container.stories.js Web: Components: update tabs-container stories, fixed tabs-container scroll, added scroll auto-hide 2019-11-25 12:32:18 +03:00
tabs-container.test.js Web: Components: added new tests to help-button and tabs-container 2019-12-18 12:09:03 +03:00

TabContainer

Custom Tabs menu

Usage

import { TabContainer } from "asc-web-components";
const array_items = [
  {
    key: "0",
    title: "Title1",
    content: (
      <div>
        <div>
          <button>BUTTON</button>
        </div>
        <div>
          <button>BUTTON</button>
        </div>
        <div>
          <button>BUTTON</button>
        </div>
      </div>
    )
  },
  {
    key: "1",
    title: "Title2",
    content: (
      <div>
        <div>
          <label>LABEL</label>
        </div>
        <div>
          <label>LABEL</label>
        </div>
        <div>
          <label>LABEL</label>
        </div>
      </div>
    )
  },
  {
    key: "2",
    title: "Title3",
    content: (
      <div>
        <div>
          <input></input>
        </div>
        <div>
          <input></input>
        </div>
        <div>
          <input></input>
        </div>
      </div>
    )
  }
];
<TabContainer>{array_items}</TabContainer>

TabContainer Properties

Props Type Required Values Default Description
isDisabled boolean - - - Disable the TabContainer
selectedItem number - - 0 Selected title of tabs container
onSelect func - - - Triggered when a title is selected

Array Items Properties

Props Type Required Values Default Description
id string - - Index of object array
title string - - Tabs title
content object - - Content in Tab