Skip to content

TabsNext

Starting with Element v48, we are introducing si-tab-next as an experimental component that will eventually replace the current si-tab component. This new implementation brings significant improvements in responsive behavior, ensuring better adaptation across different screen sizes and devices. The component has been rebuilt with a strong focus on accessibility standards, including enhanced ARIA compliance and improved keyboard navigation.

Code

Usage

import { SiTabNextComponent, SiTabsetNextComponent } from '@siemens/element-ng/tabs-next';

@Component({
  imports: [
    SiTabNextComponent,
    SiTabsetNextComponent,
    ...
  ]
})

TabsNext

TabsNext - Routing

TabsNext - Icons

SiTabsetNextComponent API Documentation

selector
si-tabset-next

No API to document for this.

SiTabNextComponent API Documentation

selector
si-tab-next

Input Properties

NameTypeDefaultDescription
active
booleanfalseWhether the tab is active or not. If set to true , the tab will be selected and its content will be displayed.
badgeColor
stringBackground color of the badge. If no color is provided a red dot badge will be rendered.
badgeContent
(boolean | TranslatableString)Additional badge content. A value of - true will render a red dot - any string without a badgeColor will render a red dot with text - any string with a badgeColor will render a normal badge
closable
booleanfalseClose the current tab.
disabled
booleanfalseDisables the tab.
heading
Required
TranslatableStringTitle of the tab item.
icon
stringIcon of the tab item. If provided, heading text will be ignored and only icon will be displayed.

Output Properties

NameTypeDescription
activeChange
booleanWhether the tab is active or not. If set to true , the tab will be selected and its content will be displayed.
closeTriggered
voidEvent emitter to notify when a tab is closed.

Attributes and Methods

NameTypeDefaultDescription
selectTab(...)
(retainFocus: boolean) => voidParameters

SiTabNextLinkComponent API Documentation

selector
a[si-tab-next][routerLink]

Input Properties

NameTypeDefaultDescription
badgeColor
stringBackground color of the badge. If no color is provided a red dot badge will be rendered.
badgeContent
(boolean | TranslatableString)Additional badge content. A value of - true will render a red dot - any string without a badgeColor will render a red dot with text - any string with a badgeColor will render a normal badge
closable
booleanfalseClose the current tab.
disabled
booleanfalseDisables the tab.
heading
Required
TranslatableStringTitle of the tab item.
icon
stringIcon of the tab item. If provided, heading text will be ignored and only icon will be displayed.

Output Properties

NameTypeDescription
closeTriggered
voidEvent emitter to notify when a tab is closed.

Attributes and Methods

NameTypeDefaultDescription
(readonly) active
Signal<(undefined | boolean)>false
ngOnDestroy()
() => voidA callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.
selectTab(...)
(retainFocus: boolean) => voidParameters

Types Documentation

Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit . Equivalent to a normal string in usage and functionality.
Translatable
import

Except where otherwise noted, content on this site is licensed under MIT License.