Skip to main content

Tab Group

Organize content into selectable tabs for efficient space usage.

Properties

PropertyTypeDescription
namestringUnique identifier for the tab group component
labelstringText displayed on the left side of the tab group
tabsTabProps[]Tab items within the tab group
justifyContentTabGroupJustifyContentAlignment method for items within the tab group
gapnumberSpacing between items within the tab group
defaultValuestring (OptionValue)Default selected button name value
displayDisplayHow the tab group component occupies width
contentWidthstringFixed width of the tab group component
variantButtonVariantTab group variant style
isHiddenbooleanWhether to hide the tab group on the deployed page
labelWidthstringThe width of the label on the left side of the tab group

name

Sets the unique identifier for the tab group component. Please refer to the component naming rules

label

Sets the text displayed on the left side of the tab group. (Supports Template Text)

tabs

Configures the tab items in the group.
Provides options to:

  • Add or remove tab items
  • Modify tab properties
  • Reorder tabs via drag and drop

Tab items using default style inherit the group's style settings.
For detailed button properties, see the Button documentation.

defaultValue

Sets the initially selected tab.
Can be set through workflow results, direct input.

justifyContent

Controls tab item alignment within the group.
Options:

  • space-between: Distributes items with equal widths
  • left: Aligns items to the left
  • right: Aligns items to the right

With left/right alignment, tab widths adjust to content.

gap

Sets the spacing between tab items.
Accepts pixel values for consistent spacing.

display

Sets how the component occupies width.
Selecting "Block" enables full-width usage, while "Fixed width" allows you to enter a specific width in pixels.
Fixed-width components can be arranged sequentially.

variant

Sets the visual style for the entire tab group.
Individual tabs set to 'default' will inherit this style.

isHidden

Controls visibility of the component.
When set to true:

  • Hidden in deployed view
  • Visible with reduced opacity in edit mode

labelWidth

Sets the width of the label section.
Accepts values in pixels or percentages.

States

PropertyTypeDescription
valuestringSelected tab name
tabsTabProps[]List of tab items

Type Definitions

type ButtonColor = 'neutral' | 'primary' | 'danger' | 'warning' | 'success';
type ButtonVariant = 'outlined' | 'filled' | 'soft' | 'plain';
type Display = 'inline-block' | 'block';
type TabGroupJustifyContent = 'flex-start' | 'flex-end' | 'space-between';

interface TabProps {
// Unique name for tab item
name: string;
// Left text for tab item
label: string;
// Tab item color
color: ButtonColor;
// Width occupation method for tab item
display: Display;
// Tab item style
variant: ButtonVariant | 'default';
// Whether tab item is disabled (template)
isDisabled: string (boolean);
// Whether tab item is hidden (template)
isHidden: string (boolean);
}