Skip to content
ZikZuk UI

DetailLayout

Stripe DetailPage

Every record gets its own page in two panes. The 17.5rem summary pane on the left says who or what it is at a glance — SummaryHeader, a StatGroup, a collapsible Details section with ids and PropertyStack — and stays put on large screens. The working pane on the right holds PaneTabs over stacked Sections. On phones the panes stack, summary first.

pnpm add @zikzuk/ui
import { DetailLayout, SummaryHeader, PropertyStack, IdChip, CopyId } from "@zikzuk/ui";

An account

When to use

  • Opening any record from a list: a customer, an account, a provider.
  • Related records are List rows that open their own pages.
  • Edit a Section in place rather than re-running a whole setup.

Not for

  • A side sheet beside the list for a record's detail.
  • A third, nested pane.

Props

DetailLayout

PropTypeDescription
summaryReactNodeThe left pane: SummaryHeader, StatGroup, Details.
childrenReactNodeThe working pane: PaneTabs and Sections.
classNamestringExtra classes on the outer element.

SummaryHeader

PropTypeDescription
titleReactNodeThe record's name, 2xl bold.
badgesReactNodeStatusPills beside the name.
subtitleReactNodeOne line under it.
titleStyleCSSPropertiese.g. morph(kind, id), so a list row's name morphs into the title.

PropertyStack

PropTypeDescription
rows{ label, value }[]Grey label over value.
columns1 | 2
Default 1
2 puts pairs side by side from sm.
classNamestringExtra classes on the outer element.