Tab

A set of layered sections of content—known as tab panels—that are displayed one at a time.

If you are looking for shadcn/ui-like tabs component, please check segmented component.

PreviousNext

Is the default tab component

Installation

1

Run the CLI

Use the CLI to add the component to your project.

npx @ngzard/ui@latest add tabs

Examples

default

Is the default tab component

position

Is the default tab component

Tabs Position:
Active Tab Indicator Position:

align

zAlignTabs: start

arrow

Is the default tab component

API

[z-tab] Component

z-tab-group is a Component that allows you to create a tabbed interface with customizable navigation and active indicator positions.

To configure the tab group, pass the following props to the component.

Property Description Type Default
[zPosition] Position of the tab navigation top | bottom | left | right top
[zActivePosition] Position of the active indicator top | bottom | left | right bottom
[zShowArrow] Whether to show scroll arrows when content overflows true | false true
[zScrollAmount] Whether to show scroll arrows when content overflows number 100
[zAlignTabs] Alignment of tabs within the navigation start | center | end start
(zTabChange) Emits when a new tab is selected or index signal emit $event $event
(zDeselect) Emits when the current tab is deselected $event $event