Getting Started
Overview
Installation
Theme
Forms
Basic Inputs
Select
Custom Inputs
Components
Navigation
Components
69
Micro Charts
Libraries
Kanban Board
Image Designer
Video Player
Visual Builder
Content Editor
Data View
Latest npm version of @ngstarter-ui/componentsWeekly npm downloads of @ngstarter-ui/components
Purchase

Tabs

The Tabs components switch between peer views inside one context. Use ngs-tab-group with ngs-tab for local content tabs, or ngs-tab-nav-bar with a[ngs-tab-link] and ngs-tab-nav-panel for route-linked tabs inside one section.

Key Features:
  • Peer views: Switch between related sections such as overview, activity, files, and settings.
  • Custom labels: Use simple text or label templates with icons and richer header content.
  • Navigation support: Use tab nav links for route-linked subsections, not primary app navigation.
  • Overflow and motion: Supports disabled tabs, pagination controls, header placement, and animations.

ngs-tab-group

PropTypeDefault
selectedIndex
The index of the active tab
number0
headerPosition
Whether the tab header should be positioned above or below the tab content
'above' | 'below''above'
stretchTabs
Whether tabs should be stretched to fill the available width
booleantrue
alignTabs
Alignment of the tab labels
'start' | 'center' | 'end''start'
animationDuration
Duration for the tab-transition animation
string'500ms'
disableRipple
Whether ripples are disabled
booleanfalse
EventDescription
selectedIndexChangeOutput to enable support for two-way binding on selectedIndex
selectedTabChangeEvent emitted when the tab selection has changed
focusChangeEvent emitted when focus has changed within a tab group

ngs-tab

PropTypeDefault
label
Plain-text label for the tab
string''
disabled
Whether the tab is disabled
booleanfalse

ngs-tab-nav-bar

PropTypeDefault
tabPanel
The nav panel that the nav bar should control
TabNavPanel | nullnull
disableRipple
Whether ripples are disabled
booleanfalse

a[ngs-tab-link]

PropTypeDefault
disabled
Whether the link is disabled
booleanfalse
rippleDisabled
Whether ripples are disabled on this link
booleanfalse