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 Panel component is a bordered container that optionally collapses its content via a toggle button. The Nettalco preset keeps the header background transparent so the panel blends naturally with the surrounding surface, while using {content.border.color} throughout to maintain consistent visual boundaries.

Usage

<!-- app.component.html -->

<!-- Static panel -->
<p-panel header="System Information">
  <p>Server uptime: 99.98% — Region: EU-West — Last deploy: 2 min ago.</p>
</p-panel>

<!-- Toggleable panel (collapsed by default) -->
<p-panel header="Advanced Settings" [toggleable]="true" [collapsed]="true">
  <p>These settings affect global application behaviour.</p>
  <ng-template #footer>
    <p-button label="Save" size="small" />
  </ng-template>
</p-panel>
// app.component.ts
import { Component } from '@angular/core';
import { PanelModule } from 'primeng/panel';
import { ButtonModule } from 'primeng/button';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  imports: [PanelModule, ButtonModule],
})
export class AppComponent {}

Design Tokens

All tokens are defined in src/lib/theme/panel/index.ts.

Root

TokenValueDescription
root.background{content.background}Panel body background
root.borderColor{content.border.color}Outer border color
root.color{content.color}Default text color
root.borderRadius{content.border.radius}Outer corner radius
TokenValueDescription
header.backgroundtransparentHeader does not add its own background fill
header.color{text.color}Header text color
header.padding1.125remUniform header padding
header.borderColor{content.border.color}Header bottom border color
header.borderWidth0No explicit header border (border comes from root)
header.borderRadius0Header corners are square; only root carries the radius

Toggleable Header

TokenValueDescription
toggleableHeader.padding0.375rem 1.125remReduced vertical padding when collapse toggle is visible

Title

TokenValueDescription
title.fontWeight600Semi-bold title for clear section labelling

Content

TokenValueDescription
content.padding0 1.125rem 1.125rem 1.125remNo top padding (header supplies the gap); equal sides and bottom
TokenValueDescription
footer.padding0 1.125rem 1.125rem 1.125remMirrors content padding for visual consistency

Theme Notes

  • The header borderWidth: '0' means the separator line between header and content is produced by the root border wrapping the whole component, not an internal header border. If you want an explicit divider, override header.borderWidth to '0 0 1px 0'.
  • toggleableHeader.padding uses a smaller vertical padding (0.375rem) than the static header (1.125rem) to keep the collapse icon click target compact.
  • All padding values intentionally use 1.125rem (18 px) rather than the 20 px used by the Card component, giving the Panel a tighter information-dense appearance.

Build docs developers (and LLMs) love