Skip to content

Tab

<ns-tab>

Overview

The singular tab that dictates what the area is about.

Examples

Guidance

Implementation

Placement

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

Specification

Attributes

selected

Property
selected
Description
Whether the tab is selected.
Type
boolean
Default
false

icon

Property
icon
Description
The name of the icon to be displayed.
Type
string
Default

aria-selected

Property
ariaSelected
Type
boolean
Default
false

role

Property
role
Type
string
Default
tab

tabindex

Property
tabIndex
Type
number
Default
0

type

Property
type
Type
string
Default
standard

Slots

SlotPermitted tagsDescription
Anonymous slotThe content of the tab.

Events

NameDescription
tabselectedThe event fired when the tab is selected.