Skip to content

Tabs

<ns-tabs>

Overview

Tabs provide organisation of content separated within the same context.

Examples

Guidance

Implementation

Placement

The ns-tabs component can only be used as a child of the <main> element.

Specification

Attributes

open

Property
open
Description
The index of the tab to open.
Type
number
Default
0

type

Property
type
Type
string
Default
standard

Slots

SlotPermitted tagsDescription
tab<ns-tab> The tab to be displayed. Slot tab is shown in the order they are added
panel<ns-panel> The content of the tab. Slot panel are in the same order as slot tab.

Events

NameDescription
tabchangeThe event fired when the tab is changed.