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
Slot | Permitted tags | Description |
---|---|---|
Anonymous slot | The content of the tab. |
Events
Name | Description |
---|---|
tabselected | The event fired when the tab is selected. |