Type
Properties
Required Properties
NoneOptional Properties
| Property | Type | Description | Default |
|---|---|---|---|
| tabsSticky | boolean | If true, the tab strip will stick to the top when scrolling | false |
Layout
- Default Width: 12 columns
- Default Height: 10 rows
- Supports Children: Yes (required - children become tabs)
Configuration Example
Advanced Usage
Tab Naming and Icons
Each child card’stitle property is used as the tab name. If no title is provided, the card’s type is used as a fallback. You can also specify an icon property on child cards to display an icon in the tab.
Sticky Tabs
WhentabsSticky is enabled, the tab strip remains visible at the top of the viewport as you scroll through tab content. This is useful for forms with long content sections.
Tab Transitions
The component includes smooth fade and slide transitions when switching between tabs, providing a polished user experience.Performance Optimization
The component uses computed caching for tab lookups and maintains the current tab index for efficient switching between tabs.Notes
- Requires at least one child card to function properly
- Child cards must have unique IDs
- The first child card is selected by default when the tabs component loads
- Empty state is displayed if a tab’s corresponding card cannot be found
- Tab content is rendered using the standard KodexaFormCard component, so any card type can be used as a child
