Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Nettalco/nettalco-theme/llms.txt

Use this file to discover all available pages before exploring further.

The Tabs component is the modern PrimeNG v17+ replacement for the legacy TabView component. It provides a tab strip with inline panel content and supports scrollable overflow navigation buttons. Nettalco Theme tokens cover every visual layer: the tablist rail, individual tab states, the panel content area, overflow navigation buttons, and the sliding active-bar indicator. If you are upgrading from TabView, migrate to Tabs to benefit from this token coverage.

Usage

<p-tabs value="0">
  <p-tablist>
    <p-tab value="0">Overview</p-tab>
    <p-tab value="1">Activity</p-tab>
    <p-tab value="2">Settings</p-tab>
  </p-tablist>
  <p-tabpanels>
    <p-tabpanel value="0">Overview content here.</p-tabpanel>
    <p-tabpanel value="1">Activity feed here.</p-tabpanel>
    <p-tabpanel value="2">Settings form here.</p-tabpanel>
  </p-tabpanels>
</p-tabs>

Design Tokens

Root

TokenValue
root.transitionDuration{transition.duration}

Tablist

TokenValue
tablist.borderWidth0 0 1px 0
tablist.background{content.background}
tablist.borderColor{content.border.color}

Tab

TokenValue
tab.backgroundtransparent
tab.hoverBackgroundtransparent
tab.activeBackgroundtransparent
tab.borderWidth0 0 1px 0
tab.borderColor{content.border.color}
tab.hoverBorderColor{content.border.color}
tab.activeBorderColor{primary.color}
tab.color{text.muted.color}
tab.hoverColor{text.color}
tab.activeColor{primary.color}
tab.padding1rem 1.125rem
tab.fontWeight600
tab.margin0 0 -1px 0
tab.gap0.5rem
tab.focusRing.width{focus.ring.width}
tab.focusRing.style{focus.ring.style}
tab.focusRing.color{focus.ring.color}
tab.focusRing.offset-1px
tab.focusRing.shadow{focus.ring.shadow}

Tabpanel

TokenValue
tabpanel.background{content.background}
tabpanel.color{content.color}
tabpanel.padding0.875rem 1.125rem 1.125rem 1.125rem
tabpanel.focusRing.width{focus.ring.width}
tabpanel.focusRing.style{focus.ring.style}
tabpanel.focusRing.color{focus.ring.color}
tabpanel.focusRing.offset{focus.ring.offset}
tabpanel.focusRing.shadowinset {focus.ring.shadow}
TokenValue
navButton.background{content.background}
navButton.color{text.muted.color}
navButton.hoverColor{text.color}
navButton.width2.5rem
navButton.focusRing.width{focus.ring.width}
navButton.focusRing.style{focus.ring.style}
navButton.focusRing.color{focus.ring.color}
navButton.focusRing.offset-1px
navButton.focusRing.shadow{focus.ring.shadow}

Active Bar

TokenValue
activeBar.height1px
activeBar.bottom-1px
activeBar.background{primary.color}

Colour Scheme Overrides

The navButton.shadow token differs between light and dark mode to produce a natural fade effect at the scroll edge:
SchemenavButton.shadow
Light0px 0px 10px 50px rgba(255, 255, 255, 0.6)
Dark0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)

Theme Notes

Tabs vs TabView

Tabs (introduced in PrimeNG v17) is the recommended component for tabbed content. The legacy TabView component uses a different token namespace and is not styled by this token section. New projects should always use Tabs.

Tab Focus Ring Offset

The tab.focusRing.offset is set to -1px (rather than the global {focus.ring.offset}) to prevent the focus ring from clipping against the tablist’s bottom border.

Build docs developers (and LLMs) love