Settings

Sidebar
Display
Profile Panel
👤

John Doe

Administrator
  • 📊 Dashboard
  • 📝 Forms
  • 📋 Tables
Commands
🚀
Go to Page
Navigate to a page
/go
🌓
Toggle Theme
Switch between light and dark mode
/theme
📐
Toggle Sidebar
Show or hide the sidebar
/sidebar
⚙️
Open Settings
Open the settings panel
/settings
Search In
📄
Pages
Search pages
:p
🧩
Components
Search component pages
:c

Detail Panel

The Detail Panel components provide a flexible way to show detail views alongside data tables. Multiple modes are available: inline split-view, card overlay with/without backdrop, tabbed panels, custom header actions, and full-screen overlay.

Inline Split-View

Panel appears alongside the table (no overlay). The table shrinks to make room for the panel. Uses isOverlay={false}.

NameEmailRoleStatus
John Doejohn@example.comAdmin Active
Jane Smithjane@example.comEditor Active
Bob Johnsonbob@example.comViewer Pending
Alice Brownalice@example.comAdmin Active
Charlie Wilsoncharlie@example.comEditor Inactive
Diana Princediana@example.comAdmin Active
Edward Kimedward@example.comViewer Active
Fiona Garciafiona@example.comEditor Active

John Doe

JD
John Doe
john@example.com
RoleAdmin
DepartmentEngineering
Phone+1 555-0101
LocationNew York
Joined2022-01-15
Status Active

Card Overlay (with Backdrop)

Panel overlays the table within the card. Clicking the backdrop closes the panel.

NameEmailRoleStatus
John Doejohn@example.comAdmin Active
Jane Smithjane@example.comEditor Active
Bob Johnsonbob@example.comViewer Pending
Alice Brownalice@example.comAdmin Active
Charlie Wilsoncharlie@example.comEditor Inactive
Diana Princediana@example.comAdmin Active
Edward Kimedward@example.comViewer Active
Fiona Garciafiona@example.comEditor Active

John Doe

JD
John Doe
john@example.com
RoleAdmin
DepartmentEngineering
Phone+1 555-0101
LocationNew York
Joined2022-01-15
Status Active

Card Overlay (No Backdrop)

Panel stays open while you click different rows. Table remains interactive. Simulated loading delay on row switch.

NameEmailRoleStatus
John Doejohn@example.comAdmin Active
Jane Smithjane@example.comEditor Active
Bob Johnsonbob@example.comViewer Pending
Alice Brownalice@example.comAdmin Active
Charlie Wilsoncharlie@example.comEditor Inactive
Diana Princediana@example.comAdmin Active
Edward Kimedward@example.comViewer Active
Fiona Garciafiona@example.comEditor Active

John Doe

JD
John Doe
john@example.com
RoleAdmin
DepartmentEngineering
Phone+1 555-0101
LocationNew York
Joined2022-01-15
Status Active

Tabbed Detail Panel

Panel with tabs for organizing content into sections. Uses the tabs snippet prop on DetailPanel.

NameEmailRoleStatus
John Doejohn@example.comAdmin Active
Jane Smithjane@example.comEditor Active
Bob Johnsonbob@example.comViewer Pending
Alice Brownalice@example.comAdmin Active
Charlie Wilsoncharlie@example.comEditor Inactive
Diana Princediana@example.comAdmin Active
Edward Kimedward@example.comViewer Active
Fiona Garciafiona@example.comEditor Active

John Doe

JD
John Doe
john@example.com
RoleAdmin
DepartmentEngineering
Phone+1 555-0101
LocationNew York
Joined2022-01-15
Status Active

Header Actions (No Footer)

Custom header with action buttons using header snippet. Close button is rendered automatically after the header content.

NameEmailRoleStatus
John Doejohn@example.comAdmin Active
Jane Smithjane@example.comEditor Active
Bob Johnsonbob@example.comViewer Pending
Alice Brownalice@example.comAdmin Active
Charlie Wilsoncharlie@example.comEditor Inactive
Diana Princediana@example.comAdmin Active
Edward Kimedward@example.comViewer Active
Fiona Garciafiona@example.comEditor Active

John Doe

JD
John Doe
john@example.com
RoleAdmin
DepartmentEngineering
Phone+1 555-0101
LocationNew York
Joined2022-01-15
Status Active

Full-Screen Overlay

Panel slides in from the right as a fixed overlay using SlidePanel + DetailPanel.

NameEmailRoleStatus
John Doejohn@example.comAdmin Active
Jane Smithjane@example.comEditor Active
Bob Johnsonbob@example.comViewer Pending
Alice Brownalice@example.comAdmin Active
Charlie Wilsoncharlie@example.comEditor Inactive
Diana Princediana@example.comAdmin Active
Edward Kimedward@example.comViewer Active
Fiona Garciafiona@example.comEditor Active

John Doe

JD
John Doe
john@example.com
RoleAdmin
DepartmentEngineering
Phone+1 555-0101
LocationNew York
Joined2022-01-15
Status Active

Usage

Inline Split-View Mode

Use DetailView with isOverlay={false}. The table shrinks and the panel appears alongside it. No backdrop is rendered in this mode.

Card Overlay Mode

Use DetailView + DetailPanel together. The table goes in the main snippet, the panel content goes as children. Toggle shouldShowBackdrop to control whether a backdrop appears.

Tabbed Panel

Use the tabs snippet prop on DetailPanel to render tabs between the header and body. Place a Tabs component with TabItem children inside the snippet.

Full-Screen Overlay Mode

Use SlidePanel + DetailPanel together. The SlidePanel handles the fixed overlay positioning, escape key, and backdrop. The DetailPanel is the same content shell used in card mode.

Resize

All panels include a drag handle on the left edge. Drag to resize (min 28rem, max 64rem). Double-click the handle to reset to default width. Width is persisted to localStorage. Disable with isResizable={false} on DetailPanel.

Component Props

DetailView

PropTypeDefaultDescription
showboolean (bindable)falseControls panel visibility
shouldShowBackdropbooleantrueShow backdrop overlay behind panel
isOverlaybooleantrueUse overlay mode. When false, panel appears inline (split-view)
mainSnippet-Main content area (table, list, etc.)
childrenSnippet-Panel content (DetailPanel)
onclose() => void-Called on backdrop click or escape key
classstring''Additional CSS classes

DetailPanel

PropTypeDefaultDescription
titleTextstring''Panel title text
headerSnippet-Custom header content (replaces title area, close button still rendered)
tabsSnippet-Tabs content rendered between header and body
childrenSnippet-Body content
footerSnippet-Footer content (action buttons)
onclose() => void-Called when close button is clicked
isResizablebooleantrueEnable drag-to-resize handle
classstring''Additional CSS classes

SlidePanel

PropTypeDefaultDescription
showboolean (bindable)falseControls panel visibility
onclose() => void-Called on escape key or backdrop click
childrenSnippet-Panel content
classstring''Additional CSS classes

CSS Reference

ClassDescription
.pa-detail-viewContainer for inline split-view mode (table + panel side by side)
.pa-detail-view--overlayModifier for overlay mode (panel overlays the table within the container)
.pa-detail-view__mainMain content area (table, list, etc.)
.pa-detail-view__panelPanel wrapper (slides open/closed)
.pa-detail-view__panel--openPanel open state
.pa-detail-view__overlayBackdrop overlay element
.pa-detail-view__overlay--visibleBackdrop visible state
.pa-detail-panel__contentDetail panel content wrapper
.pa-detail-panel__headerPanel header (title + close button)
.pa-detail-panel__titlePanel title text
.pa-detail-panel__closeClose button in panel header
.pa-detail-panel__tabsTabs area between header and body
.pa-detail-panel__bodyScrollable body area
.pa-detail-panel__footerFooter with action buttons
.pa-detail-panel-resizeDrag-to-resize handle on left edge
.pa-detail-panel-resizingBody class applied during resize drag
.pa-detail-panel--overlayFixed full-screen overlay mode (SlidePanel)
.pa-detail-panel--openSlidePanel open state
.pa-detail-panel__overlayFull-screen backdrop for SlidePanel

SCSS Variables

VariableDefaultDescription
$detail-panel-width40remDefault panel width
$detail-panel-min-width28remMinimum panel width (resize constraint)
$detail-panel-max-width64remMaximum panel width (resize constraint)
$detail-panel-resize-handle-width6pxWidth of the resize drag handle
$detail-panel-transition-duration0.3sOpen/close transition duration
$detail-panel-overlay-bgrgba(0, 0, 0, 0.3)Backdrop overlay background color

CSS Custom Properties

PropertyDescription
--pa-local-detail-panel-widthRuntime panel width (set by resize handle, persisted to localStorage)
--pa-detail-panel-bgPanel background color (defaults to card background)
--pa-detail-panel-border-colorPanel border color
--pa-detail-panel-header-bgHeader background color
--pa-detail-panel-footer-bgFooter background color

Keyboard Shortcuts

No shortcuts registered.