@slotted/react 0.1.0-beta.42 → 0.1.0-beta.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (298) hide show
  1. package/dist/{app-shell-D54YkU7E.js → app-shell-DsWhsSMU.js} +3 -2
  2. package/dist/app-shell.js +1 -1
  3. package/dist/attachment-TZykYNu5.js +300 -0
  4. package/dist/attachment.js +2 -2
  5. package/dist/{avatar-group-bJaZE1_C.js → avatar-group-Bzmmj2HI.js} +2 -1
  6. package/dist/avatar-group.js +1 -1
  7. package/dist/{carousel-B9nMK7Yf.js → carousel-CRNz-T3g.js} +1 -1
  8. package/dist/carousel.js +1 -1
  9. package/dist/{command-palette-C90CzfQi.js → command-palette-Bgf5tfCI.js} +160 -156
  10. package/dist/command-palette.js +1 -1
  11. package/dist/{data-grid-D106baPp.js → data-grid-DUft3rJb.js} +1 -1
  12. package/dist/data-grid.js +1 -1
  13. package/dist/{data-list-BA0xrySM.js → data-list-Dv3orBtf.js} +15 -15
  14. package/dist/data-list.js +1 -1
  15. package/dist/detail-panel-Cke3ZFU3.js +342 -0
  16. package/dist/detail-panel.js +2 -2
  17. package/dist/docs/action-bar.examples.md +768 -0
  18. package/dist/docs/action-bar.json +74 -50
  19. package/dist/docs/action-bar.md +49 -311
  20. package/dist/docs/app-shell.examples.md +1221 -64
  21. package/dist/docs/app-shell.json +92 -60
  22. package/dist/docs/app-shell.md +92 -57
  23. package/dist/docs/attachment.examples.md +689 -0
  24. package/dist/docs/attachment.json +69 -37
  25. package/dist/docs/attachment.md +44 -203
  26. package/dist/docs/avatar-group.json +111 -23
  27. package/dist/docs/avatar-group.md +487 -28
  28. package/dist/docs/button-group.json +98 -2
  29. package/dist/docs/button-group.md +411 -8
  30. package/dist/docs/calendar.examples.md +512 -0
  31. package/dist/docs/calendar.json +72 -24
  32. package/dist/docs/calendar.md +18 -147
  33. package/dist/docs/carousel.examples.md +868 -0
  34. package/dist/docs/carousel.json +58 -50
  35. package/dist/docs/carousel.md +66 -300
  36. package/dist/docs/cascader.examples.md +1269 -0
  37. package/dist/docs/cascader.json +72 -16
  38. package/dist/docs/cascader.md +78 -154
  39. package/dist/docs/chart.examples.md +734 -24
  40. package/dist/docs/chart.json +93 -13
  41. package/dist/docs/chart.md +28 -7
  42. package/dist/docs/clock.json +71 -15
  43. package/dist/docs/clock.md +326 -21
  44. package/dist/docs/code-block.json +79 -55
  45. package/dist/docs/code-block.md +417 -74
  46. package/dist/docs/color-picker.json +60 -12
  47. package/dist/docs/color-picker.md +245 -22
  48. package/dist/docs/column-manager.examples.md +764 -0
  49. package/dist/docs/column-manager.json +68 -12
  50. package/dist/docs/column-manager.md +44 -203
  51. package/dist/docs/command-palette.examples.md +747 -0
  52. package/dist/docs/command-palette.json +48 -24
  53. package/dist/docs/command-palette.md +60 -339
  54. package/dist/docs/currency-field.examples.md +355 -73
  55. package/dist/docs/currency-field.json +96 -64
  56. package/dist/docs/currency-field.md +57 -50
  57. package/dist/docs/dashboard-grid.examples.md +629 -0
  58. package/dist/docs/dashboard-grid.json +64 -16
  59. package/dist/docs/dashboard-grid.md +34 -152
  60. package/dist/docs/data-list.examples.md +1556 -0
  61. package/dist/docs/data-list.json +58 -18
  62. package/dist/docs/data-list.md +139 -224
  63. package/dist/docs/date-field.examples.md +543 -0
  64. package/dist/docs/date-field.json +64 -24
  65. package/dist/docs/date-field.md +22 -168
  66. package/dist/docs/datetime-field.examples.md +699 -0
  67. package/dist/docs/datetime-field.json +79 -31
  68. package/dist/docs/datetime-field.md +24 -269
  69. package/dist/docs/datetime-range-picker.examples.md +682 -0
  70. package/dist/docs/datetime-range-picker.json +117 -61
  71. package/dist/docs/datetime-range-picker.md +59 -224
  72. package/dist/docs/description-list.examples.md +652 -0
  73. package/dist/docs/description-list.json +49 -25
  74. package/dist/docs/description-list.md +33 -188
  75. package/dist/docs/detail-panel.examples.md +1177 -0
  76. package/dist/docs/detail-panel.json +69 -53
  77. package/dist/docs/detail-panel.md +114 -324
  78. package/dist/docs/entity-picker.examples.md +1037 -0
  79. package/dist/docs/entity-picker.json +66 -18
  80. package/dist/docs/entity-picker.md +56 -246
  81. package/dist/docs/event-calendar.examples.md +749 -49
  82. package/dist/docs/event-calendar.json +46 -22
  83. package/dist/docs/event-calendar.md +81 -11
  84. package/dist/docs/field-group.examples.md +554 -0
  85. package/dist/docs/field-group.json +98 -34
  86. package/dist/docs/field-group.md +55 -133
  87. package/dist/docs/filter-bar.examples.md +772 -0
  88. package/dist/docs/filter-bar.json +41 -25
  89. package/dist/docs/filter-bar.md +42 -246
  90. package/dist/docs/form.examples.md +579 -0
  91. package/dist/docs/form.json +87 -39
  92. package/dist/docs/form.md +53 -177
  93. package/dist/docs/fullscreen.examples.md +558 -0
  94. package/dist/docs/fullscreen.json +58 -18
  95. package/dist/docs/fullscreen.md +50 -169
  96. package/dist/docs/highlight.json +57 -25
  97. package/dist/docs/highlight.md +402 -50
  98. package/dist/docs/icon.json +85 -5
  99. package/dist/docs/icon.md +401 -10
  100. package/dist/docs/image.examples.md +670 -0
  101. package/dist/docs/image.json +44 -28
  102. package/dist/docs/image.md +24 -176
  103. package/dist/docs/import-export-center.examples.md +1280 -0
  104. package/dist/docs/import-export-center.json +67 -27
  105. package/dist/docs/import-export-center.md +121 -226
  106. package/dist/docs/list-item.examples.md +769 -0
  107. package/dist/docs/list-item.json +110 -38
  108. package/dist/docs/list-item.md +84 -201
  109. package/dist/docs/listbox.examples.md +858 -0
  110. package/dist/docs/listbox.json +76 -28
  111. package/dist/docs/listbox.md +41 -263
  112. package/dist/docs/markdown.json +79 -55
  113. package/dist/docs/markdown.md +581 -85
  114. package/dist/docs/media-viewer.examples.md +1038 -0
  115. package/dist/docs/media-viewer.json +70 -15
  116. package/dist/docs/media-viewer.md +84 -135
  117. package/dist/docs/message-scroller.examples.md +1193 -0
  118. package/dist/docs/message-scroller.json +41 -17
  119. package/dist/docs/message-scroller.md +80 -134
  120. package/dist/docs/message.examples.md +944 -0
  121. package/dist/docs/message.json +64 -16
  122. package/dist/docs/message.md +34 -326
  123. package/dist/docs/meter.json +58 -26
  124. package/dist/docs/meter.md +312 -32
  125. package/dist/docs/navigation-menu.examples.md +1107 -0
  126. package/dist/docs/navigation-menu.json +57 -41
  127. package/dist/docs/navigation-menu.md +105 -298
  128. package/dist/docs/notification-center.examples.md +1045 -0
  129. package/dist/docs/notification-center.json +71 -15
  130. package/dist/docs/notification-center.md +76 -266
  131. package/dist/docs/otp-input.examples.md +490 -0
  132. package/dist/docs/otp-input.json +65 -25
  133. package/dist/docs/otp-input.md +20 -191
  134. package/dist/docs/page-header.examples.md +1041 -0
  135. package/dist/docs/page-header.json +75 -43
  136. package/dist/docs/page-header.md +79 -291
  137. package/dist/docs/page.examples.md +633 -0
  138. package/dist/docs/page.json +48 -16
  139. package/dist/docs/page.md +62 -129
  140. package/dist/docs/prompt-composer.examples.md +630 -0
  141. package/dist/docs/prompt-composer.json +66 -18
  142. package/dist/docs/prompt-composer.md +35 -161
  143. package/dist/docs/prose.json +69 -37
  144. package/dist/docs/prose.md +393 -75
  145. package/dist/docs/rating.examples.md +525 -0
  146. package/dist/docs/rating.json +92 -28
  147. package/dist/docs/rating.md +27 -241
  148. package/dist/docs/saved-views.examples.md +1108 -0
  149. package/dist/docs/saved-views.json +53 -21
  150. package/dist/docs/saved-views.md +86 -171
  151. package/dist/docs/scroll-area.examples.md +837 -0
  152. package/dist/docs/scroll-area.json +64 -24
  153. package/dist/docs/scroll-area.md +57 -140
  154. package/dist/docs/section.examples.md +676 -0
  155. package/dist/docs/section.json +68 -20
  156. package/dist/docs/section.md +39 -162
  157. package/dist/docs/segmented-control.examples.md +480 -0
  158. package/dist/docs/segmented-control.json +76 -28
  159. package/dist/docs/segmented-control.md +20 -191
  160. package/dist/docs/side-navigation.examples.md +1468 -0
  161. package/dist/docs/side-navigation.json +53 -53
  162. package/dist/docs/side-navigation.md +79 -354
  163. package/dist/docs/slider.examples.md +505 -0
  164. package/dist/docs/slider.json +91 -51
  165. package/dist/docs/slider.md +47 -212
  166. package/dist/docs/sparkline.json +60 -36
  167. package/dist/docs/sparkline.md +447 -71
  168. package/dist/docs/split-button.examples.md +509 -0
  169. package/dist/docs/split-button.json +73 -41
  170. package/dist/docs/split-button.md +64 -194
  171. package/dist/docs/splitter.examples.md +921 -0
  172. package/dist/docs/splitter.json +94 -46
  173. package/dist/docs/splitter.md +75 -182
  174. package/dist/docs/stat-card.examples.md +725 -0
  175. package/dist/docs/stat-card.json +89 -41
  176. package/dist/docs/stat-card.md +55 -227
  177. package/dist/docs/status-indicator.json +80 -32
  178. package/dist/docs/status-indicator.md +409 -65
  179. package/dist/docs/stepper.json +53 -21
  180. package/dist/docs/stepper.md +369 -48
  181. package/dist/docs/table-of-contents.examples.md +550 -0
  182. package/dist/docs/table-of-contents.json +60 -28
  183. package/dist/docs/table-of-contents.md +70 -205
  184. package/dist/docs/tags-input.examples.md +541 -0
  185. package/dist/docs/tags-input.json +64 -16
  186. package/dist/docs/tags-input.md +15 -262
  187. package/dist/docs/time-field.examples.md +587 -0
  188. package/dist/docs/time-field.json +69 -29
  189. package/dist/docs/time-field.md +21 -223
  190. package/dist/docs/time-picker.json +117 -53
  191. package/dist/docs/time-picker.md +499 -54
  192. package/dist/docs/time-range-picker.examples.md +750 -0
  193. package/dist/docs/time-range-picker.json +139 -75
  194. package/dist/docs/time-range-picker.md +63 -225
  195. package/dist/docs/timeline.examples.md +617 -0
  196. package/dist/docs/timeline.json +44 -28
  197. package/dist/docs/timeline.md +34 -208
  198. package/dist/docs/toolbar.json +56 -16
  199. package/dist/docs/toolbar.md +357 -63
  200. package/dist/docs/top-navigation.examples.md +1206 -140
  201. package/dist/docs/top-navigation.json +49 -33
  202. package/dist/docs/top-navigation.md +87 -36
  203. package/dist/docs/tour.examples.md +960 -0
  204. package/dist/docs/tour.json +57 -25
  205. package/dist/docs/tour.md +60 -244
  206. package/dist/docs/transfer.examples.md +631 -0
  207. package/dist/docs/transfer.json +80 -16
  208. package/dist/docs/transfer.md +41 -170
  209. package/dist/docs/typography.json +96 -0
  210. package/dist/docs/typography.md +352 -4
  211. package/dist/docs/upload.examples.md +555 -53
  212. package/dist/docs/upload.json +62 -30
  213. package/dist/docs/upload.md +46 -11
  214. package/dist/docs/wizard.examples.md +1389 -0
  215. package/dist/docs/wizard.json +89 -49
  216. package/dist/docs/wizard.md +122 -263
  217. package/dist/{entity-picker-CC4VoC3p.js → entity-picker-C78f3Z0o.js} +9 -6
  218. package/dist/entity-picker.js +1 -1
  219. package/dist/{event-calendar-CjmF_e0H.js → event-calendar-DJPoCi-O.js} +1 -1
  220. package/dist/event-calendar.js +1 -1
  221. package/dist/{filter-bar-B3QJD7SZ.js → filter-bar-D61wiQFP.js} +1 -1
  222. package/dist/filter-bar.js +1 -1
  223. package/dist/{import-export-center-CW8YVZev.js → import-export-center-mqvmlzwB.js} +44 -36
  224. package/dist/import-export-center.js +1 -1
  225. package/dist/index.js +58 -58
  226. package/dist/{markdown-BdskE4-L.js → markdown-8CtV4k44.js} +2 -2
  227. package/dist/markdown.js +1 -1
  228. package/dist/{media-viewer-zEXcwfEY.js → media-viewer-C_cbuAq-.js} +64 -60
  229. package/dist/media-viewer.js +2 -2
  230. package/dist/message-P91bEGyV.js +455 -0
  231. package/dist/message.js +2 -2
  232. package/dist/{page-header-DmwBGwlm.js → page-header-jeAIQSZM.js} +103 -108
  233. package/dist/page-header.js +1 -1
  234. package/dist/section-CVTQdWBl.js +216 -0
  235. package/dist/section.js +2 -2
  236. package/dist/{segmented-control-CbK7SurB.js → segmented-control-BSMVjukr.js} +1 -1
  237. package/dist/segmented-control.js +1 -1
  238. package/dist/{side-navigation-CKRETc8E.js → side-navigation-BQzBxz2B.js} +179 -179
  239. package/dist/side-navigation.js +1 -1
  240. package/dist/{stat-card-CL3Xe6pV.js → stat-card-BpGZiFbG.js} +12 -14
  241. package/dist/stat-card.js +1 -1
  242. package/dist/{stepper-DHdrANZI.js → stepper-Cxb_tHnA.js} +130 -127
  243. package/dist/stepper.js +2 -2
  244. package/dist/styles/carousel.css +1 -1
  245. package/dist/styles/index.css +1 -1
  246. package/dist/styles.css +1 -1
  247. package/dist/{timeline-BiL2CXfn.js → timeline-ZngK6zLC.js} +9 -6
  248. package/dist/timeline.js +1 -1
  249. package/dist/top-navigation-YSEQzBhD.js +744 -0
  250. package/dist/top-navigation.js +2 -2
  251. package/dist/{transfer-sKUvmEKe.js → transfer-Cv5yQuTN.js} +1 -1
  252. package/dist/transfer.js +1 -1
  253. package/dist/types/attachment/attachment-parts.d.ts +24 -11
  254. package/dist/types/attachment/attachment-parts.d.ts.map +1 -1
  255. package/dist/types/attachment/attachment.d.ts +3 -3
  256. package/dist/types/attachment/attachment.d.ts.map +1 -1
  257. package/dist/types/avatar-group/avatar-group.d.ts.map +1 -1
  258. package/dist/types/carousel/carousel-parts.d.ts +2 -2
  259. package/dist/types/command-palette/command-palette.d.ts.map +1 -1
  260. package/dist/types/data-list/data-list.d.ts.map +1 -1
  261. package/dist/types/detail-panel/detail-panel-parts.d.ts +10 -3
  262. package/dist/types/detail-panel/detail-panel-parts.d.ts.map +1 -1
  263. package/dist/types/detail-panel/detail-panel.d.ts.map +1 -1
  264. package/dist/types/detail-panel/detail-panel.types.d.ts +7 -0
  265. package/dist/types/detail-panel/detail-panel.types.d.ts.map +1 -1
  266. package/dist/types/entity-picker/entity-picker.d.ts.map +1 -1
  267. package/dist/types/import-export-center/import-export-center.d.ts.map +1 -1
  268. package/dist/types/media-viewer/index.d.ts +2 -2
  269. package/dist/types/media-viewer/index.d.ts.map +1 -1
  270. package/dist/types/media-viewer/media-viewer-bar.d.ts +3 -1
  271. package/dist/types/media-viewer/media-viewer-bar.d.ts.map +1 -1
  272. package/dist/types/media-viewer/media-viewer.types.d.ts +1 -0
  273. package/dist/types/media-viewer/media-viewer.types.d.ts.map +1 -1
  274. package/dist/types/message/message-parts.d.ts +7 -0
  275. package/dist/types/message/message-parts.d.ts.map +1 -1
  276. package/dist/types/message/message.d.ts.map +1 -1
  277. package/dist/types/page-header/page-header-parts.d.ts.map +1 -1
  278. package/dist/types/section/section-parts.d.ts +16 -8
  279. package/dist/types/section/section-parts.d.ts.map +1 -1
  280. package/dist/types/section/section.d.ts.map +1 -1
  281. package/dist/types/segmented-control/segmented-control-parts.d.ts.map +1 -1
  282. package/dist/types/side-navigation/side-navigation-parts.d.ts.map +1 -1
  283. package/dist/types/stat-card/stat-card-delta.d.ts.map +1 -1
  284. package/dist/types/stat-card/stat-card-parts.d.ts +3 -3
  285. package/dist/types/stat-card/stat-card-parts.d.ts.map +1 -1
  286. package/dist/types/stepper/stepper-parts.d.ts +11 -2
  287. package/dist/types/stepper/stepper-parts.d.ts.map +1 -1
  288. package/dist/types/stepper/stepper.d.ts.map +1 -1
  289. package/dist/types/timeline/timeline-parts.d.ts.map +1 -1
  290. package/dist/types/top-navigation/top-navigation.d.ts.map +1 -1
  291. package/dist/{wizard-4c0X7Bx_.js → wizard-Dfryz1id.js} +214 -214
  292. package/dist/wizard.js +1 -1
  293. package/package.json +6 -6
  294. package/dist/attachment-MqczA38F.js +0 -292
  295. package/dist/detail-panel-EImAtksY.js +0 -327
  296. package/dist/message-D1Dd6Y2k.js +0 -452
  297. package/dist/section-D_qOfdxR.js +0 -213
  298. package/dist/top-navigation-D8IHPOmm.js +0 -744
@@ -0,0 +1,1177 @@
1
+ <!-- index: ./index.md -->
2
+ # detail-panel
3
+
4
+ `data-ui="detail-panel"` · Record summary, metadata, sections and actions.
5
+
6
+ ## Examples
7
+
8
+ ### Playground
9
+
10
+ The sales order SO-2026-01842 of Meridian Controls Group, a screen tall, with every axis on the controls below. Switch layout to tabs and the strip appears in the header with the same three sections; switch aside to start and the fields move to the other column.
11
+
12
+ Excerpt — not a complete module
13
+
14
+ ```tsx
15
+ <DetailPanel recordKey={order.id}>
16
+ <PageHeader>…</PageHeader>
17
+ <DetailPanelBody aside={<OrderFields />}>
18
+ <DetailPanelSection name="lines" label="Lines" count={4}>
19
+ <OrderLines />
20
+ </DetailPanelSection>
21
+ <DetailPanelSection name="history" label="History">
22
+ <OrderHistory />
23
+ </DetailPanelSection>
24
+ </DetailPanelBody>
25
+ </DetailPanel>;
26
+ ```
27
+
28
+ ### Every part, written out
29
+
30
+ The page-header on top with its facts and its pill; the banner about a change on the server; the columns — three stacked sections at h3 with their counts and actions, the aside of fields with a rule beside it; and the footer stuck at the bottom with two actions. Scroll the box: the header snaps, the footer stays.
31
+
32
+ Excerpt — not a complete module
33
+
34
+ ```tsx
35
+ <DetailPanel recordKey={order.id} footer={<OrderFooter />}>
36
+ <OrderHeader />
37
+ <DetailPanelBody aside={<OrderFields />} banner={<StaleAlert />}>
38
+ <OrderSections />
39
+ </DetailPanelBody>
40
+ </DetailPanel>;
41
+ ```
42
+
43
+ ### layout: stacked, or tabs
44
+
45
+ The same three sections and the same section value. Stacked, each has a heading with its count and its actions in the heading row; tabbed, the strip sits in the header’s tabs slot, one section is the tabpanel, and its actions move to a row above the content.
46
+
47
+ Example
48
+
49
+ ```tsx
50
+ import { useState } from 'react';
51
+
52
+ import { Button } from '@slotted/react/button';
53
+ import {
54
+ DetailPanel,
55
+ DetailPanelBody,
56
+ DetailPanelSection,
57
+ DetailPanelTabs,
58
+ } from '@slotted/react/detail-panel';
59
+ import {
60
+ DescriptionList,
61
+ DescriptionListDescription,
62
+ DescriptionListItem,
63
+ DescriptionListTerm,
64
+ } from '@slotted/react/description-list';
65
+ import {
66
+ PageHeader,
67
+ PageHeaderHeading,
68
+ PageHeaderMarks,
69
+ PageHeaderSubheading,
70
+ PageHeaderTabs,
71
+ PageHeaderTitle,
72
+ PageHeaderTitleArea,
73
+ PageHeaderTitleRow,
74
+ } from '@slotted/react/page-header';
75
+ import { Stack } from '@slotted/react/stack';
76
+ import { Switch } from '@slotted/react/switch';
77
+ import { Tag } from '@slotted/react/tag';
78
+ import { Text } from '@slotted/react/typography';
79
+
80
+ const FIELDS = [
81
+ { term: 'Customer', value: 'Meridian Controls Group' },
82
+ { term: 'Account owner', value: 'Marta Silva' },
83
+ { term: 'Payment terms', value: 'Net 30' },
84
+ { term: 'Total', value: '$4,280.00' },
85
+ ];
86
+
87
+ const LINES = [
88
+ { term: 'PT-200 pressure transmitter', value: '12 × $184.00' },
89
+ { term: 'VC-40 control valve', value: '4 × $392.00' },
90
+ { term: 'Calibration kit', value: '1 × $504.00' },
91
+ ];
92
+
93
+ export default function DetailPanelLayoutExample() {
94
+ const [tabs, setTabs] = useState(false);
95
+
96
+ return (
97
+ <Stack gap={5}>
98
+ <Switch checked={tabs} onCheckedChange={setTabs}>
99
+ Show the sections as tabs
100
+ </Switch>
101
+ <DetailPanel layout={tabs ? 'tabs' : 'stacked'} recordKey="SO-2026-01842">
102
+ <PageHeader>
103
+ <PageHeaderTitleArea>
104
+ <PageHeaderTitleRow>
105
+ <PageHeaderTitle>
106
+ <PageHeaderHeading>Sales order SO-2026-01842</PageHeaderHeading>
107
+ <PageHeaderMarks>
108
+ <Tag tone="warning">Awaiting payment</Tag>
109
+ </PageHeaderMarks>
110
+ <PageHeaderSubheading>Meridian Controls Group</PageHeaderSubheading>
111
+ </PageHeaderTitle>
112
+ </PageHeaderTitleRow>
113
+ </PageHeaderTitleArea>
114
+ <PageHeaderTabs>
115
+ <DetailPanelTabs label="Order sections" />
116
+ </PageHeaderTabs>
117
+ </PageHeader>
118
+ <DetailPanelBody
119
+ aside={
120
+ <DescriptionList>
121
+ {FIELDS.map((field) => (
122
+ <DescriptionListItem key={field.term}>
123
+ <DescriptionListTerm>{field.term}</DescriptionListTerm>
124
+ <DescriptionListDescription>{field.value}</DescriptionListDescription>
125
+ </DescriptionListItem>
126
+ ))}
127
+ </DescriptionList>
128
+ }
129
+ >
130
+ <DetailPanelSection
131
+ actions={
132
+ <Button size="sm" variant="outline">
133
+ Export lines
134
+ </Button>
135
+ }
136
+ count={3}
137
+ label="Lines"
138
+ name="lines"
139
+ >
140
+ <DescriptionList>
141
+ {LINES.map((line) => (
142
+ <DescriptionListItem key={line.term}>
143
+ <DescriptionListTerm>{line.term}</DescriptionListTerm>
144
+ <DescriptionListDescription>{line.value}</DescriptionListDescription>
145
+ </DescriptionListItem>
146
+ ))}
147
+ </DescriptionList>
148
+ </DetailPanelSection>
149
+ <DetailPanelSection label="Payments" name="payments">
150
+ <Text size="sm">No payment registered. $4,280.00 is due on April 11, 2026.</Text>
151
+ </DetailPanelSection>
152
+ <DetailPanelSection label="History" name="history">
153
+ <Text size="sm">Created by Marta Silva on March 12, 2026.</Text>
154
+ </DetailPanelSection>
155
+ </DetailPanelBody>
156
+ </DetailPanel>
157
+ </Stack>
158
+ );
159
+ }
160
+ ```
161
+
162
+ ### aside: end, start, or none
163
+
164
+ Where the fields stand. At the end, Jira’s and GitHub’s sidebar; at the start, HubSpot’s “about” column, with the rule on its other edge; none, and the sections take the whole width with no empty track beside them.
165
+
166
+ Example
167
+
168
+ ```tsx
169
+ import { useState } from 'react';
170
+
171
+ import { DetailPanel, DetailPanelBody, DetailPanelSection } from '@slotted/react/detail-panel';
172
+ import {
173
+ DescriptionList,
174
+ DescriptionListDescription,
175
+ DescriptionListItem,
176
+ DescriptionListTerm,
177
+ } from '@slotted/react/description-list';
178
+ import {
179
+ PageHeader,
180
+ PageHeaderHeading,
181
+ PageHeaderMarks,
182
+ PageHeaderSubheading,
183
+ PageHeaderTitle,
184
+ PageHeaderTitleArea,
185
+ PageHeaderTitleRow,
186
+ } from '@slotted/react/page-header';
187
+ import { Segment, SegmentedControl } from '@slotted/react/segmented-control';
188
+ import { Stack } from '@slotted/react/stack';
189
+ import { Tag } from '@slotted/react/tag';
190
+ import { Text } from '@slotted/react/typography';
191
+
192
+ type Side = 'end' | 'start' | 'none';
193
+
194
+ const FIELDS = [
195
+ { term: 'Customer', value: 'Meridian Controls Group' },
196
+ { term: 'Account owner', value: 'Marta Silva' },
197
+ { term: 'Payment terms', value: 'Net 30' },
198
+ { term: 'Total', value: '$4,280.00' },
199
+ ];
200
+
201
+ const LINES = [
202
+ { term: 'PT-200 pressure transmitter', value: '12 × $184.00' },
203
+ { term: 'VC-40 control valve', value: '4 × $392.00' },
204
+ { term: 'Calibration kit', value: '1 × $504.00' },
205
+ ];
206
+
207
+ export default function DetailPanelAsideExample() {
208
+ const [side, setSide] = useState<Side>('end');
209
+
210
+ return (
211
+ <Stack gap={5}>
212
+ <SegmentedControl
213
+ aria-label="Aside position"
214
+ onValueChange={(value) => setSide(value as Side)}
215
+ value={side}
216
+ >
217
+ <Segment value="end">End</Segment>
218
+ <Segment value="start">Start</Segment>
219
+ <Segment value="none">None</Segment>
220
+ </SegmentedControl>
221
+ <DetailPanel aside={side} recordKey="SO-2026-01842">
222
+ <PageHeader>
223
+ <PageHeaderTitleArea>
224
+ <PageHeaderTitleRow>
225
+ <PageHeaderTitle>
226
+ <PageHeaderHeading>Sales order SO-2026-01842</PageHeaderHeading>
227
+ <PageHeaderMarks>
228
+ <Tag tone="warning">Awaiting payment</Tag>
229
+ </PageHeaderMarks>
230
+ <PageHeaderSubheading>Meridian Controls Group</PageHeaderSubheading>
231
+ </PageHeaderTitle>
232
+ </PageHeaderTitleRow>
233
+ </PageHeaderTitleArea>
234
+ </PageHeader>
235
+ <DetailPanelBody
236
+ aside={
237
+ side === 'none' ? undefined : (
238
+ <DescriptionList>
239
+ {FIELDS.map((field) => (
240
+ <DescriptionListItem key={field.term}>
241
+ <DescriptionListTerm>{field.term}</DescriptionListTerm>
242
+ <DescriptionListDescription>{field.value}</DescriptionListDescription>
243
+ </DescriptionListItem>
244
+ ))}
245
+ </DescriptionList>
246
+ )
247
+ }
248
+ >
249
+ <DetailPanelSection count={3} label="Lines" name="lines">
250
+ <DescriptionList>
251
+ {LINES.map((line) => (
252
+ <DescriptionListItem key={line.term}>
253
+ <DescriptionListTerm>{line.term}</DescriptionListTerm>
254
+ <DescriptionListDescription>{line.value}</DescriptionListDescription>
255
+ </DescriptionListItem>
256
+ ))}
257
+ </DescriptionList>
258
+ </DetailPanelSection>
259
+ <DetailPanelSection label="Payments" name="payments">
260
+ <Text size="sm">No payment registered. $4,280.00 is due on April 11, 2026.</Text>
261
+ </DetailPanelSection>
262
+ </DetailPanelBody>
263
+ </DetailPanel>
264
+ </Stack>
265
+ );
266
+ }
267
+ ```
268
+
269
+ ### Three hosts, one anatomy
270
+
271
+ The same panel as a page’s content at level 1, as a drawer’s body with the drawer’s own close in the header actions, and as a split’s pane scrolling itself. Nothing in the panel names its host: scroll="self" is the one difference a pane makes. A pane that paints a ground of its own declares --slotted-page-ground with that ground, so a sticky section header inside the panel matches the pane and not the page.
272
+
273
+ Excerpt — not a complete module
274
+
275
+ ```tsx
276
+ <Drawer open={open} onOpenChange={setOpen}>
277
+ <DrawerPanel>
278
+ <DrawerBody>
279
+ <DetailPanel recordKey={order.id} footer={<OrderFooter />}>
280
+ …
281
+ </DetailPanel>
282
+ </DrawerBody>
283
+ </DrawerPanel>
284
+ </Drawer>;
285
+
286
+ <div
287
+ className="pane"
288
+ style={
289
+ {
290
+ background: 'var(--slotted-surface)',
291
+ '--slotted-page-ground': 'var(--slotted-surface)',
292
+ } as CSSProperties
293
+ }
294
+ >
295
+ <DetailPanel recordKey={order.id} scroll="self">
296
+ …
297
+ </DetailPanel>
298
+ </div>;
299
+ ```
300
+
301
+ ### Previous and next: focus follows the record
302
+
303
+ Press the next control in the header, or Tab to it and press Enter: the record changes, the scroller returns to its start, and — because focus was inside the panel — the heading takes focus and a screen reader announces the new order. A recordKey changed while focus is elsewhere moves nothing.
304
+
305
+ Example
306
+
307
+ ```tsx
308
+ import { useState } from 'react';
309
+
310
+ import { IconButton } from '@slotted/react/button';
311
+ import {
312
+ DescriptionList,
313
+ DescriptionListDescription,
314
+ DescriptionListItem,
315
+ DescriptionListTerm,
316
+ } from '@slotted/react/description-list';
317
+ import { DetailPanel, DetailPanelBody, DetailPanelSection } from '@slotted/react/detail-panel';
318
+ import { Glyph } from '@slotted/react/icon';
319
+ import {
320
+ PageHeader,
321
+ PageHeaderHeading,
322
+ PageHeaderMarks,
323
+ PageHeaderNavigation,
324
+ PageHeaderSubheading,
325
+ PageHeaderTitle,
326
+ PageHeaderTitleArea,
327
+ PageHeaderTitleRow,
328
+ } from '@slotted/react/page-header';
329
+ import { Tag } from '@slotted/react/tag';
330
+ import { Text } from '@slotted/react/typography';
331
+
332
+ const ORDERS = [
333
+ {
334
+ id: 'SO-2026-01841',
335
+ customer: 'Harbor Street Grocers',
336
+ status: 'Shipped',
337
+ tone: 'success',
338
+ total: '$1,960.00',
339
+ owner: 'Daniel Costa',
340
+ },
341
+ {
342
+ id: 'SO-2026-01842',
343
+ customer: 'Meridian Controls Group',
344
+ status: 'Awaiting payment',
345
+ tone: 'warning',
346
+ total: '$4,280.00',
347
+ owner: 'Marta Silva',
348
+ },
349
+ {
350
+ id: 'SO-2026-01843',
351
+ customer: 'Kestrel Freight',
352
+ status: 'Disputed',
353
+ tone: 'danger',
354
+ total: '$7,315.50',
355
+ owner: 'Priya Nair',
356
+ },
357
+ ] as const;
358
+
359
+ export default function DetailPanelNavigationExample() {
360
+ const [index, setIndex] = useState(1);
361
+ const order = ORDERS[index] ?? ORDERS[0];
362
+ const fields = [
363
+ { term: 'Customer', value: order.customer },
364
+ { term: 'Account owner', value: order.owner },
365
+ { term: 'Total', value: order.total },
366
+ ];
367
+
368
+ return (
369
+ <DetailPanel recordKey={order.id}>
370
+ <PageHeader>
371
+ <PageHeaderTitleArea>
372
+ <PageHeaderTitleRow>
373
+ <PageHeaderTitle>
374
+ <PageHeaderHeading>Sales order {order.id}</PageHeaderHeading>
375
+ <PageHeaderMarks>
376
+ <Tag tone={order.tone}>{order.status}</Tag>
377
+ </PageHeaderMarks>
378
+ <PageHeaderSubheading>{order.customer}</PageHeaderSubheading>
379
+ </PageHeaderTitle>
380
+ <PageHeaderNavigation>
381
+ <IconButton
382
+ aria-label="Previous order"
383
+ disabled={index === 0}
384
+ onClick={() => setIndex(index - 1)}
385
+ variant="ghost"
386
+ >
387
+ <Glyph name="chevron-left" />
388
+ </IconButton>
389
+ <IconButton
390
+ aria-label="Next order"
391
+ disabled={index === ORDERS.length - 1}
392
+ onClick={() => setIndex(index + 1)}
393
+ variant="ghost"
394
+ >
395
+ <Glyph name="chevron-right" />
396
+ </IconButton>
397
+ </PageHeaderNavigation>
398
+ </PageHeaderTitleRow>
399
+ </PageHeaderTitleArea>
400
+ </PageHeader>
401
+ <DetailPanelBody
402
+ aside={
403
+ <DescriptionList>
404
+ {fields.map((field) => (
405
+ <DescriptionListItem key={field.term}>
406
+ <DescriptionListTerm>{field.term}</DescriptionListTerm>
407
+ <DescriptionListDescription>{field.value}</DescriptionListDescription>
408
+ </DescriptionListItem>
409
+ ))}
410
+ </DescriptionList>
411
+ }
412
+ >
413
+ <DetailPanelSection label="Payments" name="payments">
414
+ <Text size="sm">
415
+ {order.status}. Total {order.total}, net 30.
416
+ </Text>
417
+ </DetailPanelSection>
418
+ </DetailPanelBody>
419
+ </DetailPanel>
420
+ );
421
+ }
422
+ ```
423
+
424
+ ### The section model: value, reason, mount
425
+
426
+ The value is controlled and every change is a request with a reason: the strip asks with pointer or keyboard, the link under the panel with programmatic, and the log below shows each one. Under stacked the same button scrolls the named section under the chrome and marks it data-current. mount="lazy" keeps a tab’s content once it has been seen.
427
+
428
+ Example
429
+
430
+ ```tsx
431
+ import { useRef, useState } from 'react';
432
+
433
+ import { Button } from '@slotted/react/button';
434
+ import {
435
+ DetailPanel,
436
+ DetailPanelBody,
437
+ DetailPanelSection,
438
+ DetailPanelTabs,
439
+ } from '@slotted/react/detail-panel';
440
+ import type { DetailPanelHandle } from '@slotted/react/detail-panel';
441
+ import { Inline } from '@slotted/react/inline';
442
+ import {
443
+ PageHeader,
444
+ PageHeaderHeading,
445
+ PageHeaderMarks,
446
+ PageHeaderSubheading,
447
+ PageHeaderTabs,
448
+ PageHeaderTitle,
449
+ PageHeaderTitleArea,
450
+ PageHeaderTitleRow,
451
+ } from '@slotted/react/page-header';
452
+ import { Stack } from '@slotted/react/stack';
453
+ import { Tag } from '@slotted/react/tag';
454
+ import { Text } from '@slotted/react/typography';
455
+
456
+ export default function DetailPanelSectionsExample() {
457
+ const [section, setSection] = useState<string | undefined>('lines');
458
+ const [last, setLast] = useState('No request yet.');
459
+ const handle = useRef<DetailPanelHandle>(null);
460
+
461
+ return (
462
+ <Stack gap={5}>
463
+ <DetailPanel
464
+ layout="tabs"
465
+ onSectionChange={(next, request) => {
466
+ const refused = request.reason === 'keyboard' && next === 'history';
467
+ setLast(`${next ?? 'none'} requested by ${request.reason}${refused ? ', refused' : ''}.`);
468
+ if (refused) request.cancel();
469
+ else setSection(next);
470
+ }}
471
+ recordKey="SO-2026-01842"
472
+ ref={handle}
473
+ section={section}
474
+ >
475
+ <PageHeader>
476
+ <PageHeaderTitleArea>
477
+ <PageHeaderTitleRow>
478
+ <PageHeaderTitle>
479
+ <PageHeaderHeading>Sales order SO-2026-01842</PageHeaderHeading>
480
+ <PageHeaderMarks>
481
+ <Tag tone="warning">Awaiting payment</Tag>
482
+ </PageHeaderMarks>
483
+ <PageHeaderSubheading>Meridian Controls Group</PageHeaderSubheading>
484
+ </PageHeaderTitle>
485
+ </PageHeaderTitleRow>
486
+ </PageHeaderTitleArea>
487
+ <PageHeaderTabs>
488
+ <DetailPanelTabs label="Order sections" />
489
+ </PageHeaderTabs>
490
+ </PageHeader>
491
+ <DetailPanelBody>
492
+ <DetailPanelSection label="Lines" name="lines">
493
+ <Text size="sm">Three lines, $4,280.00 in total.</Text>
494
+ </DetailPanelSection>
495
+ <DetailPanelSection label="Payments" name="payments">
496
+ <Text size="sm">No payment registered. $4,280.00 is due on April 11, 2026.</Text>
497
+ </DetailPanelSection>
498
+ <DetailPanelSection label="History" name="history">
499
+ <Text size="sm">Created by Marta Silva on March 12, 2026.</Text>
500
+ </DetailPanelSection>
501
+ </DetailPanelBody>
502
+ </DetailPanel>
503
+ <Inline gap={3}>
504
+ <Button onClick={() => handle.current?.scrollToSection('payments')} variant="outline">
505
+ Show payments
506
+ </Button>
507
+ <Text size="sm" tone="muted">
508
+ {last}
509
+ </Text>
510
+ </Inline>
511
+ </Stack>
512
+ );
513
+ }
514
+ ```
515
+
516
+ ### loading: the frame waits, the words arrive
517
+
518
+ The record has not arrived. The heading and the subheading are the page-header’s skeleton; each section shows three placeholder lines in place of content that is not mounted; the aside four short ones. The tab labels stay, because they are known before the record is. Toggle the switch to see the words land without the frame moving.
519
+
520
+ Example
521
+
522
+ ```tsx
523
+ import { useState } from 'react';
524
+
525
+ import { DetailPanel, DetailPanelBody, DetailPanelSection } from '@slotted/react/detail-panel';
526
+ import {
527
+ DescriptionList,
528
+ DescriptionListDescription,
529
+ DescriptionListItem,
530
+ DescriptionListTerm,
531
+ } from '@slotted/react/description-list';
532
+ import {
533
+ PageHeader,
534
+ PageHeaderHeading,
535
+ PageHeaderMarks,
536
+ PageHeaderSubheading,
537
+ PageHeaderTitle,
538
+ PageHeaderTitleArea,
539
+ PageHeaderTitleRow,
540
+ } from '@slotted/react/page-header';
541
+ import { Stack } from '@slotted/react/stack';
542
+ import { Switch } from '@slotted/react/switch';
543
+ import { Tag } from '@slotted/react/tag';
544
+ import { Text } from '@slotted/react/typography';
545
+
546
+ const FIELDS = [
547
+ { term: 'Customer', value: 'Meridian Controls Group' },
548
+ { term: 'Account owner', value: 'Marta Silva' },
549
+ { term: 'Payment terms', value: 'Net 30' },
550
+ { term: 'Total', value: '$4,280.00' },
551
+ ];
552
+
553
+ export default function DetailPanelLoadingExample() {
554
+ const [loading, setLoading] = useState(true);
555
+
556
+ return (
557
+ <Stack gap={5}>
558
+ <Switch checked={loading} onCheckedChange={setLoading}>
559
+ The order is loading
560
+ </Switch>
561
+ <DetailPanel loading={loading} recordKey="SO-2026-01842">
562
+ <PageHeader loading={loading}>
563
+ <PageHeaderTitleArea>
564
+ <PageHeaderTitleRow>
565
+ <PageHeaderTitle>
566
+ <PageHeaderHeading>Sales order SO-2026-01842</PageHeaderHeading>
567
+ <PageHeaderMarks>
568
+ <Tag tone="warning">Awaiting payment</Tag>
569
+ </PageHeaderMarks>
570
+ <PageHeaderSubheading>Meridian Controls Group</PageHeaderSubheading>
571
+ </PageHeaderTitle>
572
+ </PageHeaderTitleRow>
573
+ </PageHeaderTitleArea>
574
+ </PageHeader>
575
+ <DetailPanelBody
576
+ aside={
577
+ <DescriptionList>
578
+ {FIELDS.map((field) => (
579
+ <DescriptionListItem key={field.term}>
580
+ <DescriptionListTerm>{field.term}</DescriptionListTerm>
581
+ <DescriptionListDescription>{field.value}</DescriptionListDescription>
582
+ </DescriptionListItem>
583
+ ))}
584
+ </DescriptionList>
585
+ }
586
+ >
587
+ <DetailPanelSection count={3} label="Lines" name="lines">
588
+ <Text size="sm">
589
+ PT-200 pressure transmitter, VC-40 control valve and a calibration kit.
590
+ </Text>
591
+ </DetailPanelSection>
592
+ <DetailPanelSection label="Payments" name="payments">
593
+ <Text size="sm">No payment registered. $4,280.00 is due on April 11, 2026.</Text>
594
+ </DetailPanelSection>
595
+ </DetailPanelBody>
596
+ </DetailPanel>
597
+ </Stack>
598
+ );
599
+ }
600
+ ```
601
+
602
+ ### status: not-found, and error
603
+
604
+ A record that does not exist and a request that failed need different words and different actions, so they are two statuses. Both replace the columns with the message and keep the chrome: the back link still goes back and the footer’s close still closes.
605
+
606
+ Example
607
+
608
+ ```tsx
609
+ import { useState } from 'react';
610
+
611
+ import { DetailPanel, DetailPanelBody, DetailPanelSection } from '@slotted/react/detail-panel';
612
+ import {
613
+ PageHeader,
614
+ PageHeaderHeading,
615
+ PageHeaderSubheading,
616
+ PageHeaderTitle,
617
+ PageHeaderTitleArea,
618
+ PageHeaderTitleRow,
619
+ } from '@slotted/react/page-header';
620
+ import {
621
+ ResultState,
622
+ ResultStateContent,
623
+ ResultStateDescription,
624
+ ResultStateTitle,
625
+ } from '@slotted/react/result-state';
626
+ import { Segment, SegmentedControl } from '@slotted/react/segmented-control';
627
+ import { Stack } from '@slotted/react/stack';
628
+ import { Text } from '@slotted/react/typography';
629
+
630
+ type Status = 'ready' | 'not-found' | 'error';
631
+
632
+ const MESSAGES = {
633
+ 'not-found': {
634
+ title: 'This order no longer exists',
635
+ description: 'SO-2026-01900 was deleted on March 14, 2026.',
636
+ },
637
+ error: {
638
+ title: 'The order could not be loaded',
639
+ description: 'The orders service did not answer. Try again in a moment.',
640
+ },
641
+ };
642
+
643
+ export default function DetailPanelStatusExample() {
644
+ const [status, setStatus] = useState<Status>('not-found');
645
+ const message = MESSAGES[status === 'error' ? 'error' : 'not-found'];
646
+
647
+ return (
648
+ <Stack gap={5}>
649
+ <SegmentedControl
650
+ aria-label="Record status"
651
+ onValueChange={(value) => setStatus(value as Status)}
652
+ value={status}
653
+ >
654
+ <Segment value="ready">Ready</Segment>
655
+ <Segment value="not-found">Not found</Segment>
656
+ <Segment value="error">Error</Segment>
657
+ </SegmentedControl>
658
+ <DetailPanel recordKey="SO-2026-01900" status={status}>
659
+ <PageHeader>
660
+ <PageHeaderTitleArea>
661
+ <PageHeaderTitleRow>
662
+ <PageHeaderTitle>
663
+ <PageHeaderHeading>Sales order SO-2026-01900</PageHeaderHeading>
664
+ <PageHeaderSubheading>Meridian Controls Group</PageHeaderSubheading>
665
+ </PageHeaderTitle>
666
+ </PageHeaderTitleRow>
667
+ </PageHeaderTitleArea>
668
+ </PageHeader>
669
+ <DetailPanelBody
670
+ message={
671
+ <ResultState status={status === 'error' ? 'error' : 'not-found'}>
672
+ <ResultStateContent>
673
+ <ResultStateTitle>{message.title}</ResultStateTitle>
674
+ <ResultStateDescription>{message.description}</ResultStateDescription>
675
+ </ResultStateContent>
676
+ </ResultState>
677
+ }
678
+ >
679
+ <DetailPanelSection label="Lines" name="lines">
680
+ <Text size="sm">Three lines, $4,280.00 in total.</Text>
681
+ </DetailPanelSection>
682
+ </DetailPanelBody>
683
+ </DetailPanel>
684
+ </Stack>
685
+ );
686
+ }
687
+ ```
688
+
689
+ ### banner: the record changed under the reader
690
+
691
+ Marta Silva registered a payment two minutes ago. The alert sits between the header and the columns, the width of both, in the flow rather than as a toast that disappears — it is read before the stale content, and Reload is the one action.
692
+
693
+ Example
694
+
695
+ ```tsx
696
+ import { Alert, AlertActions, AlertContent, AlertTitle } from '@slotted/react/alert';
697
+ import { Button } from '@slotted/react/button';
698
+ import { DetailPanel, DetailPanelBody, DetailPanelSection } from '@slotted/react/detail-panel';
699
+ import {
700
+ PageHeader,
701
+ PageHeaderHeading,
702
+ PageHeaderMarks,
703
+ PageHeaderSubheading,
704
+ PageHeaderTitle,
705
+ PageHeaderTitleArea,
706
+ PageHeaderTitleRow,
707
+ } from '@slotted/react/page-header';
708
+ import { Tag } from '@slotted/react/tag';
709
+ import { Text } from '@slotted/react/typography';
710
+
711
+ export default function DetailPanelBannerExample() {
712
+ return (
713
+ <DetailPanel recordKey="SO-2026-01842">
714
+ <PageHeader>
715
+ <PageHeaderTitleArea>
716
+ <PageHeaderTitleRow>
717
+ <PageHeaderTitle>
718
+ <PageHeaderHeading>Sales order SO-2026-01842</PageHeaderHeading>
719
+ <PageHeaderMarks>
720
+ <Tag tone="warning">Awaiting payment</Tag>
721
+ </PageHeaderMarks>
722
+ <PageHeaderSubheading>Meridian Controls Group</PageHeaderSubheading>
723
+ </PageHeaderTitle>
724
+ </PageHeaderTitleRow>
725
+ </PageHeaderTitleArea>
726
+ </PageHeader>
727
+ <DetailPanelBody
728
+ banner={
729
+ <Alert tone="warning">
730
+ <AlertContent>
731
+ <AlertTitle>Marta Silva registered a payment two minutes ago</AlertTitle>
732
+ </AlertContent>
733
+ <AlertActions>
734
+ <Button size="sm" tone="warning">
735
+ Reload
736
+ </Button>
737
+ </AlertActions>
738
+ </Alert>
739
+ }
740
+ >
741
+ <DetailPanelSection label="Payments" name="payments">
742
+ <Text size="sm">No payment registered. $4,280.00 is due on April 11, 2026.</Text>
743
+ </DetailPanelSection>
744
+ </DetailPanelBody>
745
+ </DetailPanel>
746
+ );
747
+ }
748
+ ```
749
+
750
+ ### footer: the actions that stay
751
+
752
+ In a box that scrolls itself the footer stays at the bottom edge, painted so the content passes under it, with an ActionBar inside aligned to the column above. Scroll to the end: the last section stops above the footer, not behind it.
753
+
754
+ Example
755
+
756
+ ```tsx
757
+ import { ActionBar, ActionBarAction, ActionBarActions } from '@slotted/react/action-bar';
758
+ import { Button } from '@slotted/react/button';
759
+ import {
760
+ DescriptionList,
761
+ DescriptionListDescription,
762
+ DescriptionListItem,
763
+ DescriptionListTerm,
764
+ } from '@slotted/react/description-list';
765
+ import { DetailPanel, DetailPanelBody, DetailPanelSection } from '@slotted/react/detail-panel';
766
+ import {
767
+ PageHeader,
768
+ PageHeaderHeading,
769
+ PageHeaderMarks,
770
+ PageHeaderSubheading,
771
+ PageHeaderTitle,
772
+ PageHeaderTitleArea,
773
+ PageHeaderTitleRow,
774
+ } from '@slotted/react/page-header';
775
+ import { Tag } from '@slotted/react/tag';
776
+
777
+ const LINES = [
778
+ { term: 'PT-200 pressure transmitter', value: '12 × $184.00' },
779
+ { term: 'VC-40 control valve', value: '4 × $392.00' },
780
+ { term: 'Calibration kit', value: '1 × $504.00' },
781
+ { term: 'FM-12 flow meter', value: '6 × $641.00' },
782
+ { term: 'Mounting bracket', value: '24 × $18.50' },
783
+ { term: 'Cable gland set', value: '10 × $32.00' },
784
+ ];
785
+
786
+ const HISTORY = [
787
+ { term: 'March 12', value: 'Created by Marta Silva' },
788
+ { term: 'March 13', value: 'Credit approved by Finance' },
789
+ { term: 'March 14', value: 'Picked at the Reno warehouse' },
790
+ { term: 'March 15', value: 'Invoice INV-20877 issued' },
791
+ { term: 'March 16', value: 'Reminder sent to the customer' },
792
+ ];
793
+
794
+ export default function DetailPanelFooterExample() {
795
+ return (
796
+ <DetailPanel
797
+ footer={
798
+ <ActionBar aria-label="Order actions" variant="plain">
799
+ <ActionBarActions>
800
+ <ActionBarAction>
801
+ <Button variant="ghost">Close</Button>
802
+ </ActionBarAction>
803
+ <ActionBarAction>
804
+ <Button tone="accent">Record payment</Button>
805
+ </ActionBarAction>
806
+ </ActionBarActions>
807
+ </ActionBar>
808
+ }
809
+ recordKey="SO-2026-01842"
810
+ scroll="self"
811
+ style={{ blockSize: '24rem' }}
812
+ >
813
+ <PageHeader>
814
+ <PageHeaderTitleArea>
815
+ <PageHeaderTitleRow>
816
+ <PageHeaderTitle>
817
+ <PageHeaderHeading>Sales order SO-2026-01842</PageHeaderHeading>
818
+ <PageHeaderMarks>
819
+ <Tag tone="warning">Awaiting payment</Tag>
820
+ </PageHeaderMarks>
821
+ <PageHeaderSubheading>Meridian Controls Group</PageHeaderSubheading>
822
+ </PageHeaderTitle>
823
+ </PageHeaderTitleRow>
824
+ </PageHeaderTitleArea>
825
+ </PageHeader>
826
+ <DetailPanelBody>
827
+ <DetailPanelSection count={6} label="Lines" name="lines">
828
+ <DescriptionList>
829
+ {LINES.map((line) => (
830
+ <DescriptionListItem key={line.term}>
831
+ <DescriptionListTerm>{line.term}</DescriptionListTerm>
832
+ <DescriptionListDescription>{line.value}</DescriptionListDescription>
833
+ </DescriptionListItem>
834
+ ))}
835
+ </DescriptionList>
836
+ </DetailPanelSection>
837
+ <DetailPanelSection label="History" name="history">
838
+ <DescriptionList>
839
+ {HISTORY.map((event) => (
840
+ <DescriptionListItem key={event.term}>
841
+ <DescriptionListTerm>{event.term}</DescriptionListTerm>
842
+ <DescriptionListDescription>{event.value}</DescriptionListDescription>
843
+ </DescriptionListItem>
844
+ ))}
845
+ </DescriptionList>
846
+ </DetailPanelSection>
847
+ </DetailPanelBody>
848
+ </DetailPanel>
849
+ );
850
+ }
851
+ ```
852
+
853
+ ### size: sm, md, lg
854
+
855
+ One step moves the header’s title, the sections’ headings, the gap between the columns and the aside’s track together: 14, 16 and 18 rem. The size says nothing about rank — every heading here is the same h2.
856
+
857
+ Example
858
+
859
+ ```tsx
860
+ import { useState } from 'react';
861
+
862
+ import { DetailPanel, DetailPanelBody, DetailPanelSection } from '@slotted/react/detail-panel';
863
+ import {
864
+ DescriptionList,
865
+ DescriptionListDescription,
866
+ DescriptionListItem,
867
+ DescriptionListTerm,
868
+ } from '@slotted/react/description-list';
869
+ import {
870
+ PageHeader,
871
+ PageHeaderHeading,
872
+ PageHeaderMarks,
873
+ PageHeaderSubheading,
874
+ PageHeaderTitle,
875
+ PageHeaderTitleArea,
876
+ PageHeaderTitleRow,
877
+ } from '@slotted/react/page-header';
878
+ import { Segment, SegmentedControl } from '@slotted/react/segmented-control';
879
+ import { Stack } from '@slotted/react/stack';
880
+ import { Tag } from '@slotted/react/tag';
881
+ import { Text } from '@slotted/react/typography';
882
+
883
+ type Size = 'sm' | 'md' | 'lg';
884
+
885
+ const FIELDS = [
886
+ { term: 'Customer', value: 'Meridian Controls Group' },
887
+ { term: 'Account owner', value: 'Marta Silva' },
888
+ { term: 'Payment terms', value: 'Net 30' },
889
+ { term: 'Total', value: '$4,280.00' },
890
+ ];
891
+
892
+ const LINES = [
893
+ { term: 'PT-200 pressure transmitter', value: '12 × $184.00' },
894
+ { term: 'VC-40 control valve', value: '4 × $392.00' },
895
+ { term: 'Calibration kit', value: '1 × $504.00' },
896
+ ];
897
+
898
+ export default function DetailPanelSizesExample() {
899
+ const [size, setSize] = useState<Size>('md');
900
+
901
+ return (
902
+ <Stack gap={5}>
903
+ <SegmentedControl
904
+ aria-label="Panel size"
905
+ onValueChange={(value) => setSize(value as Size)}
906
+ value={size}
907
+ >
908
+ <Segment value="sm">Small</Segment>
909
+ <Segment value="md">Medium</Segment>
910
+ <Segment value="lg">Large</Segment>
911
+ </SegmentedControl>
912
+ <DetailPanel size={size} recordKey="SO-2026-01842">
913
+ <PageHeader>
914
+ <PageHeaderTitleArea>
915
+ <PageHeaderTitleRow>
916
+ <PageHeaderTitle>
917
+ <PageHeaderHeading>Sales order SO-2026-01842</PageHeaderHeading>
918
+ <PageHeaderMarks>
919
+ <Tag tone="warning">Awaiting payment</Tag>
920
+ </PageHeaderMarks>
921
+ <PageHeaderSubheading>Meridian Controls Group</PageHeaderSubheading>
922
+ </PageHeaderTitle>
923
+ </PageHeaderTitleRow>
924
+ </PageHeaderTitleArea>
925
+ </PageHeader>
926
+ <DetailPanelBody
927
+ aside={
928
+ <DescriptionList>
929
+ {FIELDS.map((field) => (
930
+ <DescriptionListItem key={field.term}>
931
+ <DescriptionListTerm>{field.term}</DescriptionListTerm>
932
+ <DescriptionListDescription>{field.value}</DescriptionListDescription>
933
+ </DescriptionListItem>
934
+ ))}
935
+ </DescriptionList>
936
+ }
937
+ >
938
+ <DetailPanelSection count={3} label="Lines" name="lines">
939
+ <DescriptionList>
940
+ {LINES.map((line) => (
941
+ <DescriptionListItem key={line.term}>
942
+ <DescriptionListTerm>{line.term}</DescriptionListTerm>
943
+ <DescriptionListDescription>{line.value}</DescriptionListDescription>
944
+ </DescriptionListItem>
945
+ ))}
946
+ </DescriptionList>
947
+ </DetailPanelSection>
948
+ <DetailPanelSection label="Payments" name="payments">
949
+ <Text size="sm">No payment registered. $4,280.00 is due on April 11, 2026.</Text>
950
+ </DetailPanelSection>
951
+ </DetailPanelBody>
952
+ </DetailPanel>
953
+ </Stack>
954
+ );
955
+ }
956
+ ```
957
+
958
+ ### Below 600 pixels
959
+
960
+ The root measures its own width, not the viewport. At 360 pixels the columns are one: the aside follows the sections in the flow with a rule above it, the header’s actions wrap under the title, and nothing is hidden — a phone reader reaches every field a desktop reader does.
961
+
962
+ Excerpt — not a complete module
963
+
964
+ ```tsx
965
+ <DetailPanel recordKey={order.id}>…</DetailPanel>;
966
+ ```
967
+
968
+ ### Content the family did not choose
969
+
970
+ A title of a whole sentence, clamped by the page-header at three lines with the full text in its title attribute; a supplier reference with no spaces, which the aside wraps rather than widening; and twelve sections, whose strip scrolls with paging controls that are the tabs family’s own.
971
+
972
+ Excerpt — not a complete module
973
+
974
+ ```tsx
975
+ <DetailPanel layout="tabs" recordKey={order.id}>
976
+ <OrderHeader />
977
+ <DetailPanelBody>
978
+ {MONTHS.map((month) => (
979
+ <DetailPanelSection key={month} label={month} name={month}>
980
+ …
981
+ </DetailPanelSection>
982
+ ))}
983
+ </DetailPanelBody>
984
+ </DetailPanel>;
985
+ ```
986
+
987
+ ### What a section holds, and what sits beside it
988
+
989
+ A Table in the lines section, a Timeline feed in the history, a DescriptionList of fields in the aside with a copy control on the invoice, a Toolbar with overflow in the header’s actions and a Tag in its marks. Each is placed by the panel and owned by its own family; the panel writes none of their behavior.
990
+
991
+ Excerpt — not a complete module
992
+
993
+ ```tsx
994
+ <DetailPanelSection label="History" name="history">
995
+ <Timeline label="Order history" order="newest-first">
996
+ {HISTORY.map((event) => (
997
+ <TimelineItem key={event.time} {...event} />
998
+ ))}
999
+ </Timeline>
1000
+ </DetailPanelSection>;
1001
+ ```
1002
+
1003
+ ### Setting it once, and reaching past it
1004
+
1005
+ The provider carries the layout, the aside’s side, the rank, the size, who scrolls, and the mount policy for every panel under it; the two panels here state nothing and both read tabbed with the fields at the start. The handle reaches focus() and scrollToSection().
1006
+
1007
+ Example
1008
+
1009
+ ```tsx
1010
+ import {
1011
+ DetailPanel,
1012
+ DetailPanelBody,
1013
+ DetailPanelDefaultsProvider,
1014
+ DetailPanelSection,
1015
+ DetailPanelTabs,
1016
+ } from '@slotted/react/detail-panel';
1017
+ import {
1018
+ PageHeader,
1019
+ PageHeaderHeading,
1020
+ PageHeaderSubheading,
1021
+ PageHeaderTabs,
1022
+ PageHeaderTitle,
1023
+ PageHeaderTitleArea,
1024
+ PageHeaderTitleRow,
1025
+ } from '@slotted/react/page-header';
1026
+ import { Stack } from '@slotted/react/stack';
1027
+ import { Text } from '@slotted/react/typography';
1028
+
1029
+ export default function DetailPanelDefaultsExample() {
1030
+ return (
1031
+ <DetailPanelDefaultsProvider aside="start" layout="tabs" size="sm">
1032
+ <Stack gap={6}>
1033
+ <DetailPanel recordKey="SO-2026-01842">
1034
+ <PageHeader>
1035
+ <PageHeaderTitleArea>
1036
+ <PageHeaderTitleRow>
1037
+ <PageHeaderTitle>
1038
+ <PageHeaderHeading>Sales order SO-2026-01842</PageHeaderHeading>
1039
+ <PageHeaderSubheading>Meridian Controls Group</PageHeaderSubheading>
1040
+ </PageHeaderTitle>
1041
+ </PageHeaderTitleRow>
1042
+ </PageHeaderTitleArea>
1043
+ <PageHeaderTabs>
1044
+ <DetailPanelTabs label="Order sections" />
1045
+ </PageHeaderTabs>
1046
+ </PageHeader>
1047
+ <DetailPanelBody aside={<Text size="sm">Total $4,280.00, net 30.</Text>}>
1048
+ <DetailPanelSection label="Lines" name="lines">
1049
+ <Text size="sm">Three lines.</Text>
1050
+ </DetailPanelSection>
1051
+ <DetailPanelSection label="Payments" name="payments">
1052
+ <Text size="sm">No payment registered.</Text>
1053
+ </DetailPanelSection>
1054
+ </DetailPanelBody>
1055
+ </DetailPanel>
1056
+ <DetailPanel aside="end" layout="stacked" recordKey="SO-2026-01851">
1057
+ <PageHeader>
1058
+ <PageHeaderTitleArea>
1059
+ <PageHeaderTitleRow>
1060
+ <PageHeaderTitle>
1061
+ <PageHeaderHeading>Sales order SO-2026-01851</PageHeaderHeading>
1062
+ <PageHeaderSubheading>Kestrel Freight</PageHeaderSubheading>
1063
+ </PageHeaderTitle>
1064
+ </PageHeaderTitleRow>
1065
+ </PageHeaderTitleArea>
1066
+ <PageHeaderTabs>
1067
+ <DetailPanelTabs label="Order sections" />
1068
+ </PageHeaderTabs>
1069
+ </PageHeader>
1070
+ <DetailPanelBody aside={<Text size="sm">Total $7,315.50, net 45.</Text>}>
1071
+ <DetailPanelSection label="Lines" name="lines">
1072
+ <Text size="sm">Five lines.</Text>
1073
+ </DetailPanelSection>
1074
+ <DetailPanelSection label="Payments" name="payments">
1075
+ <Text size="sm">Paid in full on March 20, 2026.</Text>
1076
+ </DetailPanelSection>
1077
+ </DetailPanelBody>
1078
+ </DetailPanel>
1079
+ </Stack>
1080
+ </DetailPanelDefaultsProvider>
1081
+ );
1082
+ }
1083
+ ```
1084
+
1085
+ ### What a reader hears
1086
+
1087
+ The article is named by the heading, so the record is announced by its identifier and customer; the aside is a complementary landmark named by the aside message; under tabs, Tab from the strip lands on the tabpanel with the outward ring and then on the table inside it. Press next: the heading takes focus and says the new record.
1088
+
1089
+ Excerpt — not a complete module
1090
+
1091
+ ```tsx
1092
+ <DetailPanel aria-label="Sales order SO-2026-01842" recordKey={order.id}>
1093
+ …
1094
+ </DetailPanel>;
1095
+ ```
1096
+
1097
+ ### mount.tsx
1098
+
1099
+ Example
1100
+
1101
+ ```tsx
1102
+ import { useState } from 'react';
1103
+
1104
+ import {
1105
+ DetailPanel,
1106
+ DetailPanelBody,
1107
+ DetailPanelSection,
1108
+ DetailPanelTabs,
1109
+ } from '@slotted/react/detail-panel';
1110
+ import { Field, FieldLabel } from '@slotted/react/field';
1111
+ import {
1112
+ PageHeader,
1113
+ PageHeaderHeading,
1114
+ PageHeaderMarks,
1115
+ PageHeaderSubheading,
1116
+ PageHeaderTabs,
1117
+ PageHeaderTitle,
1118
+ PageHeaderTitleArea,
1119
+ PageHeaderTitleRow,
1120
+ } from '@slotted/react/page-header';
1121
+ import { Segment, SegmentedControl } from '@slotted/react/segmented-control';
1122
+ import { Stack } from '@slotted/react/stack';
1123
+ import { Tag } from '@slotted/react/tag';
1124
+ import { TextField } from '@slotted/react/text-field';
1125
+
1126
+ type Mount = 'active' | 'lazy' | 'eager';
1127
+
1128
+ export default function DetailPanelMountExample() {
1129
+ const [mount, setMount] = useState<Mount>('active');
1130
+
1131
+ return (
1132
+ <Stack gap={5}>
1133
+ <SegmentedControl
1134
+ aria-label="Mount policy"
1135
+ onValueChange={(value) => setMount(value as Mount)}
1136
+ value={mount}
1137
+ >
1138
+ <Segment value="active">Active</Segment>
1139
+ <Segment value="lazy">Lazy</Segment>
1140
+ <Segment value="eager">Eager</Segment>
1141
+ </SegmentedControl>
1142
+ <DetailPanel layout="tabs" mount={mount} recordKey="SO-2026-01842">
1143
+ <PageHeader>
1144
+ <PageHeaderTitleArea>
1145
+ <PageHeaderTitleRow>
1146
+ <PageHeaderTitle>
1147
+ <PageHeaderHeading>Sales order SO-2026-01842</PageHeaderHeading>
1148
+ <PageHeaderMarks>
1149
+ <Tag tone="warning">Awaiting payment</Tag>
1150
+ </PageHeaderMarks>
1151
+ <PageHeaderSubheading>Meridian Controls Group</PageHeaderSubheading>
1152
+ </PageHeaderTitle>
1153
+ </PageHeaderTitleRow>
1154
+ </PageHeaderTitleArea>
1155
+ <PageHeaderTabs>
1156
+ <DetailPanelTabs label="Order sections" />
1157
+ </PageHeaderTabs>
1158
+ </PageHeader>
1159
+ <DetailPanelBody>
1160
+ <DetailPanelSection label="Delivery" name="delivery">
1161
+ <Field>
1162
+ <FieldLabel>Delivery note</FieldLabel>
1163
+ <TextField defaultValue="Leave at dock 4" />
1164
+ </Field>
1165
+ </DetailPanelSection>
1166
+ <DetailPanelSection label="Billing" name="billing">
1167
+ <Field>
1168
+ <FieldLabel>Billing note</FieldLabel>
1169
+ <TextField defaultValue="Send the invoice to accounts payable" />
1170
+ </Field>
1171
+ </DetailPanelSection>
1172
+ </DetailPanelBody>
1173
+ </DetailPanel>
1174
+ </Stack>
1175
+ );
1176
+ }
1177
+ ```