Skip to main content
Version: v4

Tabs

This component allows for the organisation and presentation of content or functionality into separate tabs or sections. It provides a way for users to switch between different tabs to access distinct sets of information or perform specific actions.

Here are some key aspects of a Tabs component:

  1. Tab Headers: Tabs are displayed as a row or vertical list of tab headers, representing the different sections or categories of content or functionality. Each tab header is clickable and serves as a navigation element to switch between tabs.
  2. Tab Content: Each tab corresponds to a specific section of content or functionality. When a user selects a tab, the associated content or functionality is displayed in the main content area of the UI, replacing the previously shown content.
  3. Active Tab: The active tab represents the currently selected tab. It is visually distinguished from the inactive tabs, by a different background color, to highlight the user's current context.
  4. Tab Interaction: Users can interact with the Tabs component by clicking on the tab headers to switch between tabs.
  5. Customisation and Configuration: Tabs components can be customised and configured to suit the specific design and functionality requirements of your application. This includes options to customize the appearance, behaviour, and order of the tabs, as well as the ability to add or remove tabs dynamically.

Properties

NameTypeDescription
tabsCometChatTabItem[]Array of tab items that contains multiple objects representing individual tabs
tabAlignmentTabAlignmentGroup of constants representing the alignment options
tabsStyleTabsStyleStyling properties and values of the component