@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
@@ -811,7 +811,7 @@
811
811
  "title": "Actions the row reveals",
812
812
  "note": "With actionsVisibility=\"hover\" the toolbar keeps its room and appears under the pointer and on focus anywhere in the row; on a screen that cannot hover it is always painted. Tab into the row to see it arrive.",
813
813
  "language": "tsx",
814
- "source": "<MessageFooter>\n <MessageActions>\n <IconButton aria-label=\"Copiar\" variant=\"ghost\" size=\"sm\">\n <Icon>\n <Glyph name=\"copy\" />\n </Icon>\n </IconButton>\n </MessageActions>\n</MessageFooter>;\n",
814
+ "source": "<MessageFooter>\n <MessageActions>\n <IconButton aria-label=\"Copy reply\" variant=\"ghost\" size=\"sm\">\n <Icon>\n <Glyph name=\"copy\" />\n </Icon>\n </IconButton>\n </MessageActions>\n</MessageFooter>;\n",
815
815
  "verdict": "excerpt"
816
816
  },
817
817
  {
@@ -819,8 +819,8 @@
819
819
  "title": "What a reply is doing before it has words",
820
820
  "note": "Steps done carry a tick and step back into the muted ink; the current one carries the shared ring and a band of light across its words. Under reduced motion the band stops and the words stand in the plain ink.",
821
821
  "language": "tsx",
822
- "source": "<Message status=\"streaming\">\n <MessageBody>\n <MessageActivity>\n <MessageActivityStep status=\"complete\">Read the log from 14:00 to 14:10</MessageActivityStep>\n <MessageActivityStep>Looking for the cause of p95…</MessageActivityStep>\n </MessageActivity>\n </MessageBody>\n</Message>;\n",
823
- "verdict": "excerpt"
822
+ "source": "import { Glyph, Icon } from '@slotted/react/icon';\nimport { Message, MessageActivity, MessageActivityStep, MessageBody } from '@slotted/react/message';\nimport { Stack } from '@slotted/react/stack';\n\nexport default function MessageActivityExample() {\n return (\n <Stack gap={4}>\n <Message status=\"streaming\">\n <MessageBody>\n <MessageActivity>\n <MessageActivityStep\n status=\"complete\"\n icon={\n <Icon>\n <Glyph name=\"file-text\" />\n </Icon>\n }\n >\n Read the payout log for 28 September\n </MessageActivityStep>\n <MessageActivityStep\n status=\"complete\"\n icon={\n <Icon>\n <Glyph name=\"file-spreadsheet\" />\n </Icon>\n }\n >\n Matched 126 payouts to the bank file\n </MessageActivityStep>\n <MessageActivityStep\n status=\"current\"\n icon={\n <Icon>\n <Glyph name=\"search\" />\n </Icon>\n }\n >\n Looking for the cause of error R03\n </MessageActivityStep>\n <MessageActivityStep\n status=\"pending\"\n icon={\n <Icon>\n <Glyph name=\"pencil\" />\n </Icon>\n }\n >\n Drafting the reply\n </MessageActivityStep>\n </MessageActivity>\n </MessageBody>\n </Message>\n <Message>\n <MessageBody>\n <MessageActivity variant=\"plain\">\n <MessageActivityStep status=\"complete\">\n Checked the carrier calendar\n </MessageActivityStep>\n <MessageActivityStep>Comparing the three pickup windows</MessageActivityStep>\n </MessageActivity>\n </MessageBody>\n </Message>\n <Message>\n <MessageBody>\n <MessageActivity shimmer={false}>\n <MessageActivityStep>Waiting for the bank to confirm the credit</MessageActivityStep>\n </MessageActivity>\n </MessageBody>\n </Message>\n </Stack>\n );\n}\n",
823
+ "verdict": "example"
824
824
  },
825
825
  {
826
826
  "id": "versions",
@@ -856,8 +856,8 @@
856
856
  },
857
857
  {
858
858
  "id": "tones",
859
- "title": "Five tones",
860
- "note": "accent and secondary write in the page’s ink; success, warning and danger in their own, because there the color of the words is the point — and the words say it too.",
859
+ "title": "Six tones",
860
+ "note": "accent and secondary write in the page’s ink; info, success, warning and danger in their own, because there the color of the words is the point — and the words say it too.",
861
861
  "language": "tsx",
862
862
  "source": "<Bubble tone=\"danger\">\n <BubbleContent>Step 5 failed and the worker did not come back.</BubbleContent>\n</Bubble>;\n",
863
863
  "verdict": "excerpt"
@@ -867,32 +867,32 @@
867
867
  "title": "Quick replies and links",
868
868
  "note": "render turns the surface itself into a button or an a, and it keeps the painting, the hover, a distinct press and the focus ring. A link keeps middle-click and its destination.",
869
869
  "language": "tsx",
870
- "source": "<Bubble tone=\"accent\">\n <BubbleContent render={(props) => <button type=\"button\" {...props} onClick={retryAll} />}>\n Reenviar as duas agora\n </BubbleContent>\n</Bubble>;\n",
871
- "verdict": "excerpt"
870
+ "source": "import { Bubble, BubbleContent } from '@slotted/react/message';\nimport { Inline } from '@slotted/react/inline';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\nimport { useState } from 'react';\n\nexport default function MessageInteractiveExample() {\n const [choice, setChoice] = useState('No reply chosen yet.');\n\n return (\n <Stack gap={3}>\n <Text size=\"sm\" tone=\"muted\">\n {choice}\n </Text>\n <Inline gap={2}>\n <Bubble variant=\"outline\" tone=\"accent\">\n <BubbleContent\n render={(props) => (\n <button\n type=\"button\"\n {...props}\n onClick={() => {\n setChoice('Chosen: resend both payouts now.');\n }}\n />\n )}\n >\n Resend both payouts now\n </BubbleContent>\n </Bubble>\n <Bubble variant=\"outline\" tone=\"accent\">\n <BubbleContent\n render={(props) => (\n <button\n type=\"button\"\n {...props}\n onClick={() => {\n setChoice('Chosen: wait for the bank statement.');\n }}\n />\n )}\n >\n Wait for the statement\n </BubbleContent>\n </Bubble>\n </Inline>\n <Bubble>\n <BubbleContent render={(props) => <a href=\"#payout-7731\" {...props} />}>\n Open payout 7731\n </BubbleContent>\n </Bubble>\n </Stack>\n );\n}\n",
871
+ "verdict": "example"
872
872
  },
873
873
  {
874
874
  "id": "quote",
875
875
  "title": "Replying to a message",
876
876
  "note": "The quote heads the surface in a block tinted with the surface’s own ink, author over up to three lines. With onJump it is a button that asks the scroller to take the reader to the quoted message.",
877
877
  "language": "tsx",
878
- "source": "<BubbleContent>\n <BubbleQuote\n author=\"Marta Silva\"\n onJump={() => scroller.current?.scrollToMessage('m2', { highlight: true })}\n >\n The destination account does not exist at the bank.\n </BubbleQuote>\n Send me the IBAN when it arrives.\n</BubbleContent>;\n",
879
- "verdict": "excerpt"
878
+ "source": "import { Bubble, BubbleContent, BubbleQuote, Message, MessageBody } from '@slotted/react/message';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\nimport { useState } from 'react';\n\nexport default function MessageQuoteExample() {\n const [jumped, setJumped] = useState(false);\n\n return (\n <Stack gap={4}>\n <Message align=\"end\">\n <MessageBody>\n <Bubble>\n <BubbleContent>\n <BubbleQuote\n author=\"Marta Silva\"\n onJump={() => {\n setJumped(true);\n }}\n >\n The destination account does not exist at the bank.\n </BubbleQuote>\n Send me the IBAN when it arrives.\n </BubbleContent>\n </Bubble>\n </MessageBody>\n </Message>\n <Text size=\"sm\" tone=\"muted\">\n {jumped ? 'The scroller would now show the quoted message.' : 'Press the quote to jump.'}\n </Text>\n <Message>\n <MessageBody>\n <Bubble>\n <BubbleContent>\n <BubbleQuote author=\"You\">Send me the IBAN when it arrives.</BubbleQuote>\n It arrives this afternoon.\n </BubbleContent>\n </Bubble>\n </MessageBody>\n </Message>\n </Stack>\n );\n}\n",
879
+ "verdict": "example"
880
880
  },
881
881
  {
882
882
  "id": "clamp",
883
883
  "title": "A long reply, clamped",
884
884
  "note": "maxLines shows the first lines and draws “Show more” only while the text overflows. The whole text stays in the DOM for copying and finding in the page; the chevron turns as it opens.",
885
885
  "language": "tsx",
886
- "source": "<Bubble maxLines={3}>\n <BubbleContent>{longAnswer}</BubbleContent>\n</Bubble>;\n",
887
- "verdict": "excerpt"
886
+ "source": "import { Bubble, BubbleContent } from '@slotted/react/message';\nimport { Stack } from '@slotted/react/stack';\nimport { useState } from 'react';\n\nconst REPORT =\n 'Payout 7731 was returned by the bank with error R03. The IBAN on file does not match any account, ' +\n 'so the credit never reached supplier 3310. Finance resubmitted the payout on 29 September after ' +\n 'confirming the new IBAN by phone, and the bank accepted the file at 16:20. The credit is expected ' +\n 'on the next business day. Invoice 5502 stays open until the credit appears on the statement.';\n\nexport default function MessageClampExample() {\n const [open, setOpen] = useState(true);\n\n return (\n <Stack gap={4}>\n <Bubble maxLines={3}>\n <BubbleContent>{REPORT}</BubbleContent>\n </Bubble>\n <Bubble\n maxLines={3}\n revealed={open}\n onRevealedChange={(next) => {\n setOpen(next);\n }}\n >\n <BubbleContent>{REPORT}</BubbleContent>\n </Bubble>\n </Stack>\n );\n}\n",
887
+ "verdict": "example"
888
888
  },
889
889
  {
890
890
  "id": "streaming",
891
891
  "title": "A reply while it streams",
892
892
  "note": "Words arrive in bursts. BubbleStream splits each arrival into words, and a burst enters as a wave of at most 320 ms, each word out of a blur; nothing is held back from the DOM. The dot breathes after the last word. The row is aria-busy, so the words are not read as they land. Under reduced motion every word lands settled and the dot stands lit.",
893
893
  "language": "tsx",
894
- "source": "<Message status=\"streaming\">\n <MessageBody>\n <Bubble>\n <BubbleContent>\n <BubbleStream text={received} />\n <BubbleCaret />\n </BubbleContent>\n </Bubble>\n </MessageBody>\n</Message>;\n",
895
- "verdict": "excerpt"
894
+ "source": "import { Button } from '@slotted/react/button';\nimport { Inline } from '@slotted/react/inline';\nimport {\n Bubble,\n BubbleCaret,\n BubbleContent,\n BubbleStream,\n BubbleTyping,\n Message,\n MessageBody,\n} from '@slotted/react/message';\nimport { Stack } from '@slotted/react/stack';\nimport { useEffect, useState } from 'react';\n\nconst ARRIVALS = [\n 'Payout 7731',\n 'Payout 7731 was returned by the bank',\n 'Payout 7731 was returned by the bank with error R03, which means that no account matches',\n 'Payout 7731 was returned by the bank with error R03, which means that no account matches the IBAN on file. Send the new IBAN to finance to resubmit the payout.',\n];\n\nexport default function MessageStreamingExample() {\n const [received, setReceived] = useState(1);\n\n useEffect(() => {\n if (received >= ARRIVALS.length) return;\n\n const timer = setTimeout(() => {\n setReceived(received + 1);\n }, 900);\n\n return () => {\n clearTimeout(timer);\n };\n }, [received]);\n\n const done = received >= ARRIVALS.length;\n\n function handleReplay() {\n setReceived(1);\n }\n\n return (\n <Stack gap={4}>\n <Message>\n <MessageBody>\n <Bubble>\n <BubbleContent>\n <BubbleTyping aria-label=\"Marta is typing\" />\n </BubbleContent>\n </Bubble>\n </MessageBody>\n </Message>\n <Message status={done ? undefined : 'streaming'}>\n <MessageBody>\n <Bubble>\n <BubbleContent>\n <BubbleStream text={ARRIVALS[received - 1] ?? ''} />\n {done ? null : <BubbleCaret />}\n </BubbleContent>\n </Bubble>\n </MessageBody>\n </Message>\n <Inline>\n <Button variant=\"outline\" size=\"sm\" onClick={handleReplay}>\n Replay\n </Button>\n </Inline>\n </Stack>\n );\n}\n",
895
+ "verdict": "example"
896
896
  },
897
897
  {
898
898
  "id": "typing",
@@ -907,16 +907,64 @@
907
907
  "title": "Reactions",
908
908
  "note": "The pill straddles the lower edge on the side away from the sender and rises into the surface by half its inset, clear of the words. The reader’s own reaction takes the accent’s tint and edge; a disabled one stays legible.",
909
909
  "language": "tsx",
910
- "source": "<BubbleReactions>\n <BubbleReaction count={4} defaultPressed>\n 👍\n </BubbleReaction>\n</BubbleReactions>;\n",
911
- "verdict": "excerpt"
910
+ "source": "import {\n Bubble,\n BubbleContent,\n BubbleReaction,\n BubbleReactions,\n Message,\n MessageBody,\n} from '@slotted/react/message';\nimport { useState } from 'react';\n\nexport default function MessageReactionsExample() {\n const [confirmed, setConfirmed] = useState(true);\n\n return (\n <Message>\n <MessageBody>\n <Bubble>\n <BubbleContent>The warehouse confirmed the new pickup window for Friday.</BubbleContent>\n <BubbleReactions>\n <BubbleReaction\n count={confirmed ? 4 : 3}\n pressed={confirmed}\n onPressedChange={(next) => {\n setConfirmed(next);\n }}\n >\n Confirmed\n </BubbleReaction>\n <BubbleReaction count={1}>Needs review</BubbleReaction>\n <BubbleReaction count={2} disabled>\n Duplicate\n </BubbleReaction>\n </BubbleReactions>\n </Bubble>\n </MessageBody>\n </Message>\n );\n}\n",
911
+ "verdict": "example"
912
912
  },
913
913
  {
914
914
  "id": "content",
915
915
  "title": "Content nobody chose",
916
- "note": "A URL of a hundred characters breaks where it must instead of pushing the bubble past its share; an Arabic line in a Portuguese thread reads from its own side; a two-letter reply is still a bubble, not a pill.",
916
+ "note": "A URL of a hundred characters breaks where it must instead of pushing the bubble past its share; an Arabic line in an English thread reads from its own side; a two-letter reply is still a bubble, not a pill.",
917
917
  "language": "tsx",
918
918
  "source": "<Bubble>\n <BubbleContent>{text}</BubbleContent>\n</Bubble>;\n",
919
919
  "verdict": "excerpt"
920
+ },
921
+ {
922
+ "id": "basic",
923
+ "title": "basic.tsx",
924
+ "note": null,
925
+ "language": "tsx",
926
+ "source": "import { Avatar } from '@slotted/react/avatar';\nimport {\n Bubble,\n BubbleContent,\n Message,\n MessageAuthor,\n MessageAvatar,\n MessageBody,\n MessageHeader,\n MessageTime,\n} from '@slotted/react/message';\n\nexport default function MessageBasicExample() {\n return (\n <Message>\n <MessageAvatar>\n <Avatar name=\"Marta Silva\" size=\"sm\" />\n </MessageAvatar>\n <MessageBody>\n <MessageHeader>\n <MessageAuthor>Marta Silva</MessageAuthor>\n <MessageTime dateTime=\"2026-09-30T09:38\">09:38</MessageTime>\n </MessageHeader>\n <Bubble>\n <BubbleContent>The payout for order 4821 arrives this afternoon.</BubbleContent>\n </Bubble>\n </MessageBody>\n </Message>\n );\n}\n",
927
+ "verdict": "example"
928
+ },
929
+ {
930
+ "id": "conversation",
931
+ "title": "conversation.tsx",
932
+ "note": null,
933
+ "language": "tsx",
934
+ "source": "import { Avatar } from '@slotted/react/avatar';\nimport {\n Bubble,\n BubbleContent,\n BubbleMeta,\n Message,\n MessageAvatar,\n MessageBody,\n MessageGroup,\n MessageReceipt,\n MessageTime,\n} from '@slotted/react/message';\nimport { Stack } from '@slotted/react/stack';\n\nexport default function MessageConversationExample() {\n return (\n <Stack gap={4}>\n <MessageGroup>\n <Message>\n <MessageBody>\n <Bubble>\n <BubbleContent>Tuesday's payout came back with error R03.</BubbleContent>\n </Bubble>\n </MessageBody>\n </Message>\n <Message>\n <MessageBody>\n <Bubble>\n <BubbleContent>The destination account does not exist at the bank.</BubbleContent>\n </Bubble>\n </MessageBody>\n </Message>\n <Message>\n <MessageAvatar>\n <Avatar name=\"Marta Silva\" size=\"sm\" />\n </MessageAvatar>\n <MessageBody>\n <Bubble>\n <BubbleContent>Send me the new IBAN and I will resubmit it today.</BubbleContent>\n </Bubble>\n </MessageBody>\n </Message>\n </MessageGroup>\n <Message align=\"end\" status=\"read\">\n <MessageBody>\n <Bubble>\n <BubbleContent>\n Understood. The finance team will send it before noon.\n <BubbleMeta>\n <MessageTime dateTime=\"2026-09-30T09:41\">09:41</MessageTime>\n <MessageReceipt />\n </BubbleMeta>\n </BubbleContent>\n </Bubble>\n </MessageBody>\n </Message>\n </Stack>\n );\n}\n",
935
+ "verdict": "example"
936
+ },
937
+ {
938
+ "id": "delivery",
939
+ "title": "delivery.tsx",
940
+ "note": null,
941
+ "language": "tsx",
942
+ "source": "import {\n Bubble,\n BubbleContent,\n BubbleMeta,\n BubbleRetry,\n Message,\n MessageBody,\n MessageFooter,\n MessageReceipt,\n MessageTime,\n} from '@slotted/react/message';\nimport { Stack } from '@slotted/react/stack';\nimport { useState } from 'react';\n\nexport default function MessageDeliveryExample() {\n const [failed, setFailed] = useState(true);\n\n return (\n <Stack gap={4}>\n <Message align=\"end\" status=\"sending\">\n <MessageBody>\n <Bubble>\n <BubbleContent>\n Sending: the credit note for invoice 5502.\n <BubbleMeta>\n <MessageTime dateTime=\"2026-09-30T10:02\">10:02</MessageTime>\n <MessageReceipt />\n </BubbleMeta>\n </BubbleContent>\n </Bubble>\n </MessageBody>\n </Message>\n <Message align=\"end\" status=\"sent\">\n <MessageBody>\n <Bubble>\n <BubbleContent>\n Sent: the refund for order 4821 is approved.\n <BubbleMeta>\n <MessageTime dateTime=\"2026-09-30T10:03\">10:03</MessageTime>\n <MessageReceipt />\n </BubbleMeta>\n </BubbleContent>\n </Bubble>\n </MessageBody>\n </Message>\n <Message align=\"end\" status=\"delivered\">\n <MessageBody>\n <Bubble>\n <BubbleContent>\n Delivered: the shipment label is attached.\n <BubbleMeta>\n <MessageTime dateTime=\"2026-09-30T10:04\">10:04</MessageTime>\n <MessageReceipt />\n </BubbleMeta>\n </BubbleContent>\n </Bubble>\n </MessageBody>\n </Message>\n <Message align=\"end\" status=\"read\">\n <MessageBody>\n <Bubble>\n <BubbleContent>\n Read: the payout is back on the bank file.\n <BubbleMeta>\n <MessageTime dateTime=\"2026-09-30T10:05\">10:05</MessageTime>\n <MessageReceipt />\n </BubbleMeta>\n </BubbleContent>\n </Bubble>\n </MessageBody>\n </Message>\n <Message\n align=\"end\"\n status={failed ? 'failed' : 'sending'}\n onRetry={() => {\n setFailed(false);\n }}\n >\n <MessageBody>\n <Bubble>\n <BubbleContent>The new IBAN for supplier 3310 is ready.</BubbleContent>\n <BubbleRetry />\n </Bubble>\n <MessageFooter>\n <MessageReceipt />\n </MessageFooter>\n </MessageBody>\n </Message>\n </Stack>\n );\n}\n",
943
+ "verdict": "example"
944
+ },
945
+ {
946
+ "id": "footer",
947
+ "title": "footer.tsx",
948
+ "note": null,
949
+ "language": "tsx",
950
+ "source": "import { IconButton } from '@slotted/react/button';\nimport { Glyph } from '@slotted/react/icon';\nimport {\n Bubble,\n BubbleContent,\n Message,\n MessageActions,\n MessageBody,\n MessageFooter,\n MessageVersions,\n} from '@slotted/react/message';\nimport { Stack } from '@slotted/react/stack';\nimport { useState } from 'react';\n\nconst DRAFTS = [\n 'The payout failed because the destination account does not exist at the bank.',\n 'The bank returned the payout with error R03: no account matches the IBAN on file.',\n 'Payout 7731 was returned. The IBAN on file does not match any account at the bank.',\n];\n\nexport default function MessageFooterExample() {\n const [version, setVersion] = useState(0);\n\n return (\n <Stack gap={4}>\n <Message\n actionsVisibility=\"always\"\n version={version}\n versionCount={DRAFTS.length}\n onVersionChange={(next) => {\n setVersion(next);\n }}\n >\n <MessageBody>\n <Bubble>\n <BubbleContent>{DRAFTS[version]}</BubbleContent>\n </Bubble>\n <MessageFooter>\n <MessageVersions />\n <MessageActions>\n <IconButton aria-label=\"Copy reply\" variant=\"ghost\" size=\"sm\">\n <Glyph name=\"copy\" />\n </IconButton>\n <IconButton aria-label=\"Regenerate reply\" variant=\"ghost\" size=\"sm\">\n <Glyph name=\"rotate-cw\" />\n </IconButton>\n </MessageActions>\n </MessageFooter>\n </MessageBody>\n </Message>\n <Message actionsVisibility=\"hover\">\n <MessageBody>\n <Bubble>\n <BubbleContent>Hover the message or tab into it to reveal its actions.</BubbleContent>\n </Bubble>\n <MessageFooter>\n <MessageActions>\n <IconButton aria-label=\"Copy reply\" variant=\"ghost\" size=\"sm\">\n <Glyph name=\"copy\" />\n </IconButton>\n </MessageActions>\n </MessageFooter>\n </MessageBody>\n </Message>\n </Stack>\n );\n}\n",
951
+ "verdict": "example"
952
+ },
953
+ {
954
+ "id": "painting",
955
+ "title": "painting.tsx",
956
+ "note": null,
957
+ "language": "tsx",
958
+ "source": "import { Bubble, BubbleContent } from '@slotted/react/message';\nimport { Stack } from '@slotted/react/stack';\n\nexport default function MessagePaintingExample() {\n return (\n <Stack gap={3}>\n <Bubble variant=\"solid\" tone=\"accent\">\n <BubbleContent>Solid accent: order 4821 is ready to ship.</BubbleContent>\n </Bubble>\n <Bubble variant=\"soft\" tone=\"secondary\">\n <BubbleContent>Soft secondary: the carrier confirmed pickup at 14:00.</BubbleContent>\n </Bubble>\n <Bubble variant=\"outline\" tone=\"info\">\n <BubbleContent>Outline info: the customs form was attached to the shipment.</BubbleContent>\n </Bubble>\n <Bubble variant=\"plain\" tone=\"success\">\n <BubbleContent>Plain success: payout 7731 settled with the bank.</BubbleContent>\n </Bubble>\n <Bubble variant=\"soft\" tone=\"warning\">\n <BubbleContent>\n Soft warning: stock for SKU 2208 falls below its reorder point.\n </BubbleContent>\n </Bubble>\n <Bubble variant=\"solid\" tone=\"danger\">\n <BubbleContent>Solid danger: step 5 failed and the worker did not come back.</BubbleContent>\n </Bubble>\n </Stack>\n );\n}\n",
959
+ "verdict": "example"
960
+ },
961
+ {
962
+ "id": "thread",
963
+ "title": "thread.tsx",
964
+ "note": null,
965
+ "language": "tsx",
966
+ "source": "import { Avatar } from '@slotted/react/avatar';\nimport {\n Bubble,\n BubbleContent,\n BubbleReaction,\n BubbleReactions,\n Message,\n MessageAuthor,\n MessageAvatar,\n MessageBody,\n MessageDefaultsProvider,\n MessageHeader,\n MessageTime,\n} from '@slotted/react/message';\nimport { Stack } from '@slotted/react/stack';\n\nexport default function MessageThreadExample() {\n return (\n <MessageDefaultsProvider layout=\"thread\">\n <Stack gap={4}>\n <Message>\n <MessageAvatar>\n <Avatar name=\"Emily Parker\" />\n </MessageAvatar>\n <MessageBody>\n <MessageHeader>\n <MessageAuthor>Emily Parker</MessageAuthor>\n <MessageTime dateTime=\"2026-09-30T09:12\">4 minutes ago</MessageTime>\n </MessageHeader>\n <Bubble>\n <BubbleContent>Can we name the SSO owner before the vendor review?</BubbleContent>\n <BubbleReactions>\n <BubbleReaction count={3}>Agree</BubbleReaction>\n </BubbleReactions>\n </Bubble>\n </MessageBody>\n </Message>\n <Message>\n <MessageAvatar>\n <Avatar name=\"Tomas Berg\" />\n </MessageAvatar>\n <MessageBody>\n <MessageHeader>\n <MessageAuthor>Tomas Berg</MessageAuthor>\n <MessageTime dateTime=\"2026-09-30T09:15\">1 minute ago</MessageTime>\n </MessageHeader>\n <Bubble>\n <BubbleContent>Marta Silva owns it. I will add her to the review.</BubbleContent>\n </Bubble>\n </MessageBody>\n </Message>\n </Stack>\n </MessageDefaultsProvider>\n );\n}\n",
967
+ "verdict": "example"
920
968
  }
921
969
  ]
922
970
  }
@@ -11,16 +11,39 @@ import { Bubble, BubbleCaret, BubbleContent, BubbleMeta, BubbleQuote, BubbleReac
11
11
 
12
12
  ## Minimal example
13
13
 
14
- Excerpt — not a complete module
15
-
16
- ```tsx
17
- <Message align="start" status="read">
18
- <MessageBody>
19
- <Bubble>
20
- <BubbleContent>Tuesday's payout came back with error R03.</BubbleContent>
21
- </Bubble>
22
- </MessageBody>
23
- </Message>;
14
+ Example
15
+
16
+ ```tsx
17
+ import { Avatar } from '@slotted/react/avatar';
18
+ import {
19
+ Bubble,
20
+ BubbleContent,
21
+ Message,
22
+ MessageAuthor,
23
+ MessageAvatar,
24
+ MessageBody,
25
+ MessageHeader,
26
+ MessageTime,
27
+ } from '@slotted/react/message';
28
+
29
+ export default function MessageBasicExample() {
30
+ return (
31
+ <Message>
32
+ <MessageAvatar>
33
+ <Avatar name="Marta Silva" size="sm" />
34
+ </MessageAvatar>
35
+ <MessageBody>
36
+ <MessageHeader>
37
+ <MessageAuthor>Marta Silva</MessageAuthor>
38
+ <MessageTime dateTime="2026-09-30T09:38">09:38</MessageTime>
39
+ </MessageHeader>
40
+ <Bubble>
41
+ <BubbleContent>The payout for order 4821 arrives this afternoon.</BubbleContent>
42
+ </Bubble>
43
+ </MessageBody>
44
+ </Message>
45
+ );
46
+ }
24
47
  ```
25
48
 
26
49
  ## Anatomy
@@ -165,319 +188,4 @@ Excerpt — not a complete module
165
188
 
166
189
  ## Examples
167
190
 
168
- ### Two sides, asked once
169
-
170
- align lives on the row. A bubble in an end row paints the accent’s fill by itself; a bubble in a start row the secondary tint. Nothing is repeated on the bubble.
171
-
172
- Excerpt — not a complete module
173
-
174
- ```tsx
175
- <Message align="end">
176
- <MessageBody>
177
- <Bubble>
178
- <BubbleContent>Great. I will resend as soon as it arrives.</BubbleContent>
179
- </Bubble>
180
- </MessageBody>
181
- </Message>;
182
- ```
183
-
184
- ### The avatar at the foot of the words
185
-
186
- The avatar sits on the line of the last bubble, not of the footer under it, and moves to the end side with the row. It is the avatar family’s small step, so it follows the density.
187
-
188
- Excerpt — not a complete module
189
-
190
- ```tsx
191
- <Message>
192
- <MessageAvatar>
193
- <Avatar name="Marta Silva" size="sm" />
194
- </MessageAvatar>
195
- <MessageBody>
196
- <Bubble>
197
- <BubbleContent>It arrives this afternoon.</BubbleContent>
198
- </Bubble>
199
- </MessageBody>
200
- </Message>;
201
- ```
202
-
203
- ### A run from one sender
204
-
205
- Three rows, one avatar on the last. The rows stand two pixels apart and the corners facing each other on the sender’s side draw in to four; the earlier rows keep the avatar column without an empty slot.
206
-
207
- Excerpt — not a complete module
208
-
209
- ```tsx
210
- <MessageGroup>
211
- <Message>
212
- <MessageBody>
213
- <Bubble>
214
- <BubbleContent>Tuesday's payout came back with error R03.</BubbleContent>
215
- </Bubble>
216
- </MessageBody>
217
- </Message>
218
- <Message>
219
- <MessageAvatar>
220
- <Avatar name="Marta Silva" size="sm" />
221
- </MessageAvatar>
222
- <MessageBody>
223
- <Bubble>
224
- <BubbleContent>It arrives this afternoon.</BubbleContent>
225
- </Bubble>
226
- </MessageBody>
227
- </Message>
228
- </MessageGroup>;
229
- ```
230
-
231
- ### Who spoke, and when
232
-
233
- The header sets the name on the inset of the words, so the name stands over the first letter it names. The dot between name and hour is drawn by the stylesheet and never read aloud.
234
-
235
- Excerpt — not a complete module
236
-
237
- ```tsx
238
- <MessageHeader>
239
- <MessageAuthor>Marta Silva</MessageAuthor>
240
- <MessageTime dateTime="2026-09-30T09:38">09:38</MessageTime>
241
- </MessageHeader>;
242
- ```
243
-
244
- ### Where a message is in its delivery
245
-
246
- Inside the bubble the hour and the mark ride at the end of the last line: a breathing clock while sending, one tick, two ticks, and two ticks in full ink once read. A message that did not go says so in a word under it, with the retry control beside it.
247
-
248
- Excerpt — not a complete module
249
-
250
- ```tsx
251
- <Message align="end" status="read">
252
- <MessageBody>
253
- <Bubble>
254
- <BubbleContent>
255
- And I mark the invoice as paid only after the credit.
256
- <BubbleMeta>
257
- <MessageTime dateTime="2026-09-30T09:41">09:41</MessageTime>
258
- <MessageReceipt />
259
- </BubbleMeta>
260
- </BubbleContent>
261
- </Bubble>
262
- </MessageBody>
263
- </Message>;
264
- ```
265
-
266
- ### Actions the row reveals
267
-
268
- With actionsVisibility="hover" the toolbar keeps its room and appears under the pointer and on focus anywhere in the row; on a screen that cannot hover it is always painted. Tab into the row to see it arrive.
269
-
270
- Excerpt — not a complete module
271
-
272
- ```tsx
273
- <MessageFooter>
274
- <MessageActions>
275
- <IconButton aria-label="Copiar" variant="ghost" size="sm">
276
- <Icon>
277
- <Glyph name="copy" />
278
- </Icon>
279
- </IconButton>
280
- </MessageActions>
281
- </MessageFooter>;
282
- ```
283
-
284
- ### What a reply is doing before it has words
285
-
286
- Steps done carry a tick and step back into the muted ink; the current one carries the shared ring and a band of light across its words. Under reduced motion the band stops and the words stand in the plain ink.
287
-
288
- Excerpt — not a complete module
289
-
290
- ```tsx
291
- <Message status="streaming">
292
- <MessageBody>
293
- <MessageActivity>
294
- <MessageActivityStep status="complete">Read the log from 14:00 to 14:10</MessageActivityStep>
295
- <MessageActivityStep>Looking for the cause of p95…</MessageActivityStep>
296
- </MessageActivity>
297
- </MessageBody>
298
- </Message>;
299
- ```
300
-
301
- ### Versions of one reply
302
-
303
- The pager draws with two or more versions and stops at both ends. ArrowLeft and ArrowRight page from either control, mirrored in a right-to-left page; the label is a polite live region.
304
-
305
- Excerpt — not a complete module
306
-
307
- ```tsx
308
- <Message versionCount={3} version={version} onVersionChange={setVersion}>
309
- <MessageBody>
310
- <Bubble>
311
- <BubbleContent>{drafts[version]}</BubbleContent>
312
- </Bubble>
313
- <MessageFooter>
314
- <MessageVersions />
315
- </MessageFooter>
316
- </MessageBody>
317
- </Message>;
318
- ```
319
-
320
- ### A comment thread
321
-
322
- layout="thread" sets every row at the start with the avatar at the top, the name inline, the words unframed and a band under the pointer; the actions float at the row’s top end on a raised plate.
323
-
324
- Excerpt — not a complete module
325
-
326
- ```tsx
327
- <Message layout="thread">
328
- <MessageAvatar>
329
- <Avatar name="Emily Parker" />
330
- </MessageAvatar>
331
- <MessageBody>
332
- <MessageHeader>
333
- <MessageAuthor>Emily Parker</MessageAuthor>
334
- <MessageTime dateTime="2026-09-30T09:12">4 minutes ago</MessageTime>
335
- </MessageHeader>
336
- <Bubble>
337
- <BubbleContent>Can we name the SSO owner before the review?</BubbleContent>
338
- </Bubble>
339
- </MessageBody>
340
- </Message>;
341
- ```
342
-
343
- ### Playground
344
-
345
- One bubble with its variant, tone and clamp on the controls. A bubble outside a row takes the provider’s painting; inside one it takes the row’s side.
346
-
347
- Excerpt — not a complete module
348
-
349
- ```tsx
350
- <Bubble variant="soft" tone="secondary">
351
- <BubbleContent>The destination account does not exist at the bank.</BubbleContent>
352
- </Bubble>;
353
- ```
354
-
355
- ### Four paintings
356
-
357
- solid is the tone’s fill, soft its tint with a rim that shows only in high contrast, outline its edge on the page, plain no box at all — the unframed answer that takes the whole row.
358
-
359
- Excerpt — not a complete module
360
-
361
- ```tsx
362
- <Bubble variant="solid" tone="accent">
363
- …
364
- </Bubble>;
365
- <Bubble variant="soft">…</Bubble>;
366
- <Bubble variant="outline">…</Bubble>;
367
- <Bubble variant="plain">…</Bubble>;
368
- ```
369
-
370
- ### Five tones
371
-
372
- accent and secondary write in the page’s ink; success, warning and danger in their own, because there the color of the words is the point — and the words say it too.
373
-
374
- Excerpt — not a complete module
375
-
376
- ```tsx
377
- <Bubble tone="danger">
378
- <BubbleContent>Step 5 failed and the worker did not come back.</BubbleContent>
379
- </Bubble>;
380
- ```
381
-
382
- ### Quick replies and links
383
-
384
- render turns the surface itself into a button or an a, and it keeps the painting, the hover, a distinct press and the focus ring. A link keeps middle-click and its destination.
385
-
386
- Excerpt — not a complete module
387
-
388
- ```tsx
389
- <Bubble tone="accent">
390
- <BubbleContent render={(props) => <button type="button" {...props} onClick={retryAll} />}>
391
- Reenviar as duas agora
392
- </BubbleContent>
393
- </Bubble>;
394
- ```
395
-
396
- ### Replying to a message
397
-
398
- The quote heads the surface in a block tinted with the surface’s own ink, author over up to three lines. With onJump it is a button that asks the scroller to take the reader to the quoted message.
399
-
400
- Excerpt — not a complete module
401
-
402
- ```tsx
403
- <BubbleContent>
404
- <BubbleQuote
405
- author="Marta Silva"
406
- onJump={() => scroller.current?.scrollToMessage('m2', { highlight: true })}
407
- >
408
- The destination account does not exist at the bank.
409
- </BubbleQuote>
410
- Send me the IBAN when it arrives.
411
- </BubbleContent>;
412
- ```
413
-
414
- ### A long reply, clamped
415
-
416
- maxLines shows the first lines and draws “Show more” only while the text overflows. The whole text stays in the DOM for copying and finding in the page; the chevron turns as it opens.
417
-
418
- Excerpt — not a complete module
419
-
420
- ```tsx
421
- <Bubble maxLines={3}>
422
- <BubbleContent>{longAnswer}</BubbleContent>
423
- </Bubble>;
424
- ```
425
-
426
- ### A reply while it streams
427
-
428
- Words arrive in bursts. BubbleStream splits each arrival into words, and a burst enters as a wave of at most 320 ms, each word out of a blur; nothing is held back from the DOM. The dot breathes after the last word. The row is aria-busy, so the words are not read as they land. Under reduced motion every word lands settled and the dot stands lit.
429
-
430
- Excerpt — not a complete module
431
-
432
- ```tsx
433
- <Message status="streaming">
434
- <MessageBody>
435
- <Bubble>
436
- <BubbleContent>
437
- <BubbleStream text={received} />
438
- <BubbleCaret />
439
- </BubbleContent>
440
- </Bubble>
441
- </MessageBody>
442
- </Message>;
443
- ```
444
-
445
- ### Someone is writing
446
-
447
- Three dots rise and brighten in a wave in the writer’s bubble, which trails two circles of its own fill and edge and arrives rising from them. It is one image named for assistive technology.
448
-
449
- Excerpt — not a complete module
450
-
451
- ```tsx
452
- <Bubble>
453
- <BubbleContent>
454
- <BubbleTyping aria-label="Marta is typing" />
455
- </BubbleContent>
456
- </Bubble>;
457
- ```
458
-
459
- ### Reactions
460
-
461
- The pill straddles the lower edge on the side away from the sender and rises into the surface by half its inset, clear of the words. The reader’s own reaction takes the accent’s tint and edge; a disabled one stays legible.
462
-
463
- Excerpt — not a complete module
464
-
465
- ```tsx
466
- <BubbleReactions>
467
- <BubbleReaction count={4} defaultPressed>
468
- 👍
469
- </BubbleReaction>
470
- </BubbleReactions>;
471
- ```
472
-
473
- ### Content nobody chose
474
-
475
- A URL of a hundred characters breaks where it must instead of pushing the bubble past its share; an Arabic line in a Portuguese thread reads from its own side; a two-letter reply is still a bubble, not a pill.
476
-
477
- Excerpt — not a complete module
478
-
479
- ```tsx
480
- <Bubble>
481
- <BubbleContent>{text}</BubbleContent>
482
- </Bubble>;
483
- ```
191
+ See [message.examples.md](./message.examples.md).