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 PanelMenu component is a collapsible, accordion-style vertical navigation tree. Each top-level entry is an expandable panel with its own header; child items are nested below with configurable indentation. Nettalco Theme introduces a transition: none override on both the panel header content and the individual item content elements, eliminating hover animation delays across the entire component.

Usage

<p-panelMenu [model]="items" [multiple]="false" />
import { MenuItem } from 'primeng/api';

items: MenuItem[] = [
  {
    label: 'Dashboard',
    icon: 'pi pi-home',
    items: [
      { label: 'Overview', icon: 'pi pi-chart-bar' },
      { label: 'Analytics', icon: 'pi pi-chart-line' }
    ]
  },
  {
    label: 'Settings',
    icon: 'pi pi-cog',
    items: [
      { label: 'Profile', icon: 'pi pi-user' },
      { label: 'Notifications', icon: 'pi pi-bell' }
    ]
  }
];

Design Tokens

Root

TokenValue
root.gap0.5rem
root.transitionDuration{transition.duration}

Panel

TokenValue
panel.background{content.background}
panel.borderColor{content.border.color}
panel.borderWidth1px
panel.color{content.color}
panel.padding0.25rem 0.25rem
panel.borderRadius{content.border.radius}
panel.first.borderWidth1px
panel.first.topBorderRadius{content.border.radius}
panel.last.borderWidth1px
panel.last.bottomBorderRadius{content.border.radius}

Item

TokenValue
item.focusBackground{navigation.item.focus.background}
item.color{navigation.item.color}
item.focusColor{navigation.item.focus.color}
item.gap0.5rem
item.padding{navigation.item.padding}
item.borderRadius{content.border.radius}
item.icon.color{navigation.item.icon.color}
item.icon.focusColor{navigation.item.icon.focus.color}
TokenValue
submenu.indent1rem
TokenValue
submenuIcon.color{navigation.submenu.icon.color}
submenuIcon.focusColor{navigation.submenu.icon.focus.color}

Theme Notes

Transition Override

Nettalco Theme applies transition: none to both the panel header content and the nested item content in PanelMenu. This is unique among the menu-family components in that it targets two distinct CSS selectors:
/* Panel header row */
div.p-panelmenu-header-content {
  transition: none;
}

/* Individual item rows within expanded panels */
div.p-panelmenu-item-content {
  transition: none;
}
Both overrides are part of the global extended CSS block in Nettalco Theme. The result is that expanding a panel header and hovering over child items both respond with zero animation delay, producing a tight, snappy feel appropriate for dense sidebar navigation.

Build docs developers (and LLMs) love