Tabs

Overview

Tabs are a group of tab component used to navigate and allow users to switch between different views or sections within the same layout. Each tab represents a distinct section, and selecting a tab displays its associated content while hiding the content of other tabs.

Tabs help organize content into manageable sections, enabling users to navigate and access information efficiently without loading new pages or screens

image-20240816-062555.png
Tabs Config

Attributes

Attributes are the options available for each component, allowing you to customize its appearance and control their behavior. It includes various sections explained below.

Basic:

image-20240925-112223.png
Basic Attributes

Attribute Name

Description

Attribute Name

Description

Component Size

  • This allows users to modify the size of a specific component according to the grid size of layout.

For example,
If the layout grid size is 3 then layout is divided into 3 sections then you can changes the components size between 1 to 3.

Layout Type

It is used to set the layout type in two ways as:

  1. Grid: The Grid type divides a component into a specified number of columns. The grid size determines the number of available columns.

  2. Flow: The Flow Layout Type is used for positioning and formatting components within a layout. This layout type allows components to be positioned in relation to each other.

Note: By default, this attribute is set to a value of Grid Layout Type.

Default Tab

If you have multiple tabs, select the number to set the default tab.

Overflow Limit

This feature lets you control the number of tab. Setting the limit to 1 will show only one tab, with other appearing in a dropdown menu.

Base UI:

Attribute Name

Description

Attribute Name

Description

Margin Location

"Margin Location" refers to the spacing around the outside edge of an element

Margin Size

"Margin Size" refers to the amount of space around the outside edges of an element,

Style

  • It is used to apply custom styles to section, such as color, font, size, and more.

  • It allows you to define the appearance of a component by specifying CSS properties directly within the attribute.

Classes

  • It is used to apply SLDS classes to section, if needed.

UI State:

Attribute Group

Attribute Name

Description

Visibility

Visibility Type

It determines whether a component is visible on the layout. It offers the following visibility types:

  1. Always: The component will always be visible.

  2. Conditional: The component's visibility is determined based on specific criteria, which can make it either visible or hidden as needed.
    You can explore more about conditional visibility

Events