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

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 (286) hide show
  1. package/dist/{accordion-n5D6mcmS.js → accordion-xW-aFeGb.js} +1 -1
  2. package/dist/accordion.js +1 -1
  3. package/dist/{action-bar-Cq4dt4hP.js → action-bar-BSUuY6pJ.js} +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/{action-sheet-dNnB26br.js → action-sheet-BouG2qh_.js} +1 -1
  6. package/dist/action-sheet.js +1 -1
  7. package/dist/{app-shell-DyPHYe4K.js → app-shell-D54YkU7E.js} +126 -110
  8. package/dist/app-shell.js +2 -2
  9. package/dist/{calendar-DRuJ7z0H.js → calendar-YQ784o4d.js} +139 -123
  10. package/dist/calendar.js +1 -1
  11. package/dist/{cascader-CivJ76VR.js → cascader-fq8fNWSr.js} +1 -1
  12. package/dist/cascader.js +1 -1
  13. package/dist/{chart-CgXbG6gZ.js → chart-vedR0BDN.js} +1 -1
  14. package/dist/chart.js +1 -1
  15. package/dist/{checkbox-D3E4gzMe.js → checkbox-DsJhlB5c.js} +3 -3
  16. package/dist/{checkbox-group-Dg5YN3fx.js → checkbox-group-pvX9R_yS.js} +2 -2
  17. package/dist/checkbox-group.js +1 -1
  18. package/dist/checkbox.js +1 -1
  19. package/dist/{collapsible-CT4_3aXm.js → collapsible-KzBs5HvA.js} +2 -2
  20. package/dist/collapsible.js +1 -1
  21. package/dist/{color-picker-CeOl4ikV.js → color-picker-i-MJ5VVs.js} +4 -4
  22. package/dist/color-picker.js +1 -1
  23. package/dist/{column-manager-CnOhzVGP.js → column-manager-D028QbfO.js} +5 -5
  24. package/dist/column-manager.js +1 -1
  25. package/dist/{combobox-C2qlkTw6.js → combobox-599heRN_.js} +1 -1
  26. package/dist/combobox.js +1 -1
  27. package/dist/{context-menu-WiKS4Zwv.js → context-menu-WM_tT9hz.js} +1 -1
  28. package/dist/context-menu.js +1 -1
  29. package/dist/{currency-field-LAawS9qo.js → currency-field-rS36pjCO.js} +1 -1
  30. package/dist/currency-field.js +1 -1
  31. package/dist/{dashboard-grid-Zzqmbzqq.js → dashboard-grid-Dh2Q3IQv.js} +2 -2
  32. package/dist/dashboard-grid.js +1 -1
  33. package/dist/{data-grid-Y5aX9njc.js → data-grid-D106baPp.js} +17 -17
  34. package/dist/data-grid.js +1 -1
  35. package/dist/{data-list-CyEq7M2D.js → data-list-BA0xrySM.js} +2 -2
  36. package/dist/data-list.js +1 -1
  37. package/dist/{date-field-CxubN_3u.js → date-field-BZ5JcvXJ.js} +1 -1
  38. package/dist/date-field.js +1 -1
  39. package/dist/{date-picker-6hj83x5D.js → date-picker-BvEbsbJC.js} +4 -4
  40. package/dist/date-picker.js +2 -2
  41. package/dist/{date-range-picker-CBWnFTgL.js → date-range-picker-uIr-yReE.js} +5 -5
  42. package/dist/date-range-picker.js +1 -1
  43. package/dist/{datetime-field-GMIqBuTa.js → datetime-field-DDs3mV9Z.js} +1 -1
  44. package/dist/datetime-field.js +1 -1
  45. package/dist/{datetime-picker-DwUYd3zF.js → datetime-picker-DDYXqrjm.js} +6 -6
  46. package/dist/datetime-picker.js +1 -1
  47. package/dist/{datetime-range-picker-CX_tBt6b.js → datetime-range-picker-CFTHW771.js} +6 -6
  48. package/dist/datetime-range-picker.js +1 -1
  49. package/dist/docs/accordion.examples.md +743 -0
  50. package/dist/docs/accordion.json +84 -28
  51. package/dist/docs/accordion.md +56 -152
  52. package/dist/docs/action-sheet.examples.md +771 -0
  53. package/dist/docs/action-sheet.json +91 -51
  54. package/dist/docs/action-sheet.md +72 -233
  55. package/dist/docs/app-shell.json +7 -0
  56. package/dist/docs/app-shell.md +1 -0
  57. package/dist/docs/breadcrumb.json +64 -16
  58. package/dist/docs/breadcrumb.md +489 -56
  59. package/dist/docs/collapsible.examples.md +575 -0
  60. package/dist/docs/collapsible.json +89 -49
  61. package/dist/docs/collapsible.md +47 -197
  62. package/dist/docs/context-menu.json +58 -18
  63. package/dist/docs/context-menu.md +442 -77
  64. package/dist/docs/field.json +15 -1
  65. package/dist/docs/field.md +3 -1
  66. package/dist/docs/floating-panel.json +56 -0
  67. package/dist/docs/floating-panel.md +329 -8
  68. package/dist/docs/hover-card.json +65 -17
  69. package/dist/docs/hover-card.md +422 -64
  70. package/dist/docs/loading-overlay.examples.md +577 -0
  71. package/dist/docs/loading-overlay.json +55 -23
  72. package/dist/docs/loading-overlay.md +49 -168
  73. package/dist/docs/menu.json +67 -0
  74. package/dist/docs/menu.md +8 -1
  75. package/dist/docs/menubar.json +55 -15
  76. package/dist/docs/menubar.md +488 -42
  77. package/dist/docs/pagination.json +89 -33
  78. package/dist/docs/pagination.md +462 -55
  79. package/dist/docs/popover.json +1 -1
  80. package/dist/docs/popover.md +1 -1
  81. package/dist/docs/select.json +55 -1
  82. package/dist/docs/select.md +7 -2
  83. package/dist/docs/toggle-group.examples.md +584 -0
  84. package/dist/docs/toggle-group.json +84 -20
  85. package/dist/docs/toggle-group.md +17 -182
  86. package/dist/docs/toggle.json +93 -37
  87. package/dist/docs/toggle.md +304 -51
  88. package/dist/{drawer-Du1aC1px.js → drawer-CQagePr_.js} +256 -256
  89. package/dist/drawer.js +1 -1
  90. package/dist/{entity-picker-BwJX0gNJ.js → entity-picker-CC4VoC3p.js} +2 -2
  91. package/dist/entity-picker.js +1 -1
  92. package/dist/{event-calendar-DzlL95E4.js → event-calendar-CjmF_e0H.js} +5 -5
  93. package/dist/event-calendar.js +1 -1
  94. package/dist/field-C-HRhke0.js +421 -0
  95. package/dist/{field-group-7zV68b3d.js → field-group-CU0PasvW.js} +1 -1
  96. package/dist/field-group.js +1 -1
  97. package/dist/field.js +1 -1
  98. package/dist/{filter-bar-DMuP5P6e.js → filter-bar-B3QJD7SZ.js} +11 -11
  99. package/dist/filter-bar.js +1 -1
  100. package/dist/{hover-card-CWCSZ5_p.js → hover-card-CTItbEfH.js} +2 -2
  101. package/dist/hover-card.js +1 -1
  102. package/dist/{import-export-center-DzAUMTq5.js → import-export-center-CW8YVZev.js} +1 -1
  103. package/dist/import-export-center.js +1 -1
  104. package/dist/index.js +132 -132
  105. package/dist/{listbox-CWU3DiEt.js → listbox-ZqiJ2yer.js} +1 -1
  106. package/dist/listbox.js +1 -1
  107. package/dist/{markdown-7wOBMXTl.js → markdown-BdskE4-L.js} +1 -1
  108. package/dist/markdown.js +1 -1
  109. package/dist/menu-parts-DXs5YuUA.js +932 -0
  110. package/dist/menu.js +1 -1
  111. package/dist/{menubar-k8Q4_p9l.js → menubar-CVoAFc6r.js} +2 -2
  112. package/dist/menubar.js +1 -1
  113. package/dist/{multi-select-DEd_92BC.js → multi-select-Dc2d6dDB.js} +1 -1
  114. package/dist/multi-select.js +1 -1
  115. package/dist/{number-field-BJKoidAE.js → number-field-BQ54hXmk.js} +1 -1
  116. package/dist/number-field.js +1 -1
  117. package/dist/{otp-input-Czz9Z6dQ.js → otp-input-DRooqa3f.js} +1 -1
  118. package/dist/otp-input.js +1 -1
  119. package/dist/{pagination-D0PUAFYm.js → pagination-BRXuyPzo.js} +1 -1
  120. package/dist/pagination.js +1 -1
  121. package/dist/{picker-frame-CT5WNEnw.js → picker-frame-B6sPCP5Y.js} +1 -1
  122. package/dist/{popover-B2t__iNO.js → popover-1DlOu95x.js} +198 -197
  123. package/dist/popover.js +1 -1
  124. package/dist/{prompt-composer-Lsfcz_i9.js → prompt-composer-tYIs39rn.js} +1 -1
  125. package/dist/prompt-composer.js +1 -1
  126. package/dist/{radio-group-_ZRUgcI5.js → radio-group-AW3xcYYh.js} +2 -2
  127. package/dist/radio-group.js +1 -1
  128. package/dist/{rating-C6AkIIUi.js → rating-h3qdHLNi.js} +1 -1
  129. package/dist/rating.js +1 -1
  130. package/dist/{saved-views-zM-DxT1F.js → saved-views-nqn0SDXn.js} +4 -4
  131. package/dist/saved-views.js +1 -1
  132. package/dist/{segmented-control-D52GeOlS.js → segmented-control-CbK7SurB.js} +2 -2
  133. package/dist/segmented-control.js +1 -1
  134. package/dist/select-d448Wkzb.js +1124 -0
  135. package/dist/select.js +1 -1
  136. package/dist/{side-navigation-CtZuP87S.js → side-navigation-CKRETc8E.js} +99 -99
  137. package/dist/side-navigation.js +1 -1
  138. package/dist/{slider-DQqQ0skr.js → slider-DQ2CnxTO.js} +1 -1
  139. package/dist/slider.js +1 -1
  140. package/dist/{split-button-BYowsA6Q.js → split-button-D4MPKSB2.js} +1 -1
  141. package/dist/split-button.js +1 -1
  142. package/dist/styles/action-bar.css +1 -1
  143. package/dist/styles/app-shell.css +1 -1
  144. package/dist/styles/cascader.css +2 -0
  145. package/dist/styles/chart.css +1 -1
  146. package/dist/styles/checkbox-group.css +2 -0
  147. package/dist/styles/checkbox.css +2 -0
  148. package/dist/styles/color-picker.css +3 -3
  149. package/dist/styles/column-manager.css +2 -2
  150. package/dist/styles/combobox.css +2 -0
  151. package/dist/styles/context-menu.css +1 -1
  152. package/dist/styles/currency-field.css +2 -0
  153. package/dist/styles/dashboard-grid.css +2 -2
  154. package/dist/styles/data-grid.css +4 -4
  155. package/dist/styles/data-list.css +3 -1
  156. package/dist/styles/date-field.css +2 -0
  157. package/dist/styles/date-picker.css +3 -1
  158. package/dist/styles/date-range-picker.css +3 -1
  159. package/dist/styles/datetime-field.css +2 -0
  160. package/dist/styles/datetime-picker.css +3 -1
  161. package/dist/styles/datetime-range-picker.css +3 -1
  162. package/dist/styles/entity-picker.css +3 -1
  163. package/dist/styles/event-calendar.css +2 -2
  164. package/dist/styles/field-group.css +2 -0
  165. package/dist/styles/field.css +2 -0
  166. package/dist/styles/filter-bar.css +4 -4
  167. package/dist/styles/floating-panel.css +1 -1
  168. package/dist/styles/hover-card.css +1 -1
  169. package/dist/styles/import-export-center.css +3 -3
  170. package/dist/styles/index.css +9 -9
  171. package/dist/styles/listbox.css +2 -0
  172. package/dist/styles/markdown.css +2 -0
  173. package/dist/styles/menu.css +1 -1
  174. package/dist/styles/menubar.css +1 -1
  175. package/dist/styles/multi-select.css +2 -0
  176. package/dist/styles/number-field.css +2 -0
  177. package/dist/styles/otp-input.css +2 -0
  178. package/dist/styles/pagination.css +1 -1
  179. package/dist/styles/popover.css +1 -1
  180. package/dist/styles/prompt-composer.css +2 -0
  181. package/dist/styles/radio-group.css +2 -0
  182. package/dist/styles/rating.css +2 -0
  183. package/dist/styles/saved-views.css +3 -3
  184. package/dist/styles/segmented-control.css +2 -0
  185. package/dist/styles/select.css +3 -1
  186. package/dist/styles/side-navigation.css +1 -1
  187. package/dist/styles/slider.css +2 -0
  188. package/dist/styles/split-button.css +1 -1
  189. package/dist/styles/switch.css +2 -0
  190. package/dist/styles/table.css +3 -3
  191. package/dist/styles/tags-input.css +2 -0
  192. package/dist/styles/text-field.css +2 -0
  193. package/dist/styles/textarea.css +2 -0
  194. package/dist/styles/time-field.css +2 -0
  195. package/dist/styles/time-picker.css +3 -1
  196. package/dist/styles/time-range-picker.css +3 -1
  197. package/dist/styles/toggle-group.css +3 -1
  198. package/dist/styles/toolbar.css +1 -1
  199. package/dist/styles/top-navigation.css +1 -1
  200. package/dist/styles/transfer.css +2 -0
  201. package/dist/styles/upload.css +2 -0
  202. package/dist/styles.css +1 -1
  203. package/dist/{switch-CcZAVLiW.js → switch-DxMukg7F.js} +1 -1
  204. package/dist/switch.js +1 -1
  205. package/dist/{table-D4oX9Gvn.js → table-BecApjeD.js} +13 -13
  206. package/dist/table.js +1 -1
  207. package/dist/{tags-input-O87zTh7h.js → tags-input-CqCeLtk-.js} +1 -1
  208. package/dist/tags-input.js +1 -1
  209. package/dist/{text-field-Cnjc7LB5.js → text-field-CMOkJ9Z6.js} +1 -1
  210. package/dist/text-field.js +1 -1
  211. package/dist/{textarea-DcA7jwOM.js → textarea-DfqPfXTr.js} +1 -1
  212. package/dist/textarea.js +1 -1
  213. package/dist/{time-field-BanhrUvf.js → time-field-GyLQsxcc.js} +1 -1
  214. package/dist/time-field.js +1 -1
  215. package/dist/{time-picker-Cu1iV039.js → time-picker-CGHPnust.js} +3 -3
  216. package/dist/time-picker.js +1 -1
  217. package/dist/{time-range-picker-sdbaFJFN.js → time-range-picker-BMRtAqPy.js} +4 -4
  218. package/dist/time-range-picker.js +1 -1
  219. package/dist/{toggle-zDTD5G3H.js → toggle-DSEEtL3Y.js} +7 -2
  220. package/dist/{toggle-group-D7GQyNQP.js → toggle-group-DZEWkVRo.js} +8 -3
  221. package/dist/toggle-group.js +1 -1
  222. package/dist/toggle.js +1 -1
  223. package/dist/{toolbar-DOV4BKY8.js → toolbar-BP7ka6lN.js} +1 -1
  224. package/dist/toolbar.js +1 -1
  225. package/dist/{top-navigation-D3rpgBV2.js → top-navigation-D8IHPOmm.js} +1 -1
  226. package/dist/top-navigation.js +1 -1
  227. package/dist/{transfer-CuLlF_nY.js → transfer-sKUvmEKe.js} +5 -5
  228. package/dist/transfer.js +1 -1
  229. package/dist/types/app-shell/app-shell-parts.d.ts +7 -0
  230. package/dist/types/app-shell/app-shell-parts.d.ts.map +1 -1
  231. package/dist/types/app-shell/index.d.ts +1 -1
  232. package/dist/types/app-shell/index.d.ts.map +1 -1
  233. package/dist/types/calendar/calendar.d.ts.map +1 -1
  234. package/dist/types/calendar/use-clock-today.d.ts +10 -0
  235. package/dist/types/calendar/use-clock-today.d.ts.map +1 -0
  236. package/dist/types/field/field-defaults.d.ts +1 -1
  237. package/dist/types/field/field-defaults.d.ts.map +1 -1
  238. package/dist/types/field/field-help-sheet.d.ts +15 -0
  239. package/dist/types/field/field-help-sheet.d.ts.map +1 -0
  240. package/dist/types/field/field-parts.d.ts +1 -1
  241. package/dist/types/field/field-parts.d.ts.map +1 -1
  242. package/dist/types/field/field.types.d.ts +11 -0
  243. package/dist/types/field/field.types.d.ts.map +1 -1
  244. package/dist/types/field/index.d.ts +1 -1
  245. package/dist/types/field/index.d.ts.map +1 -1
  246. package/dist/types/menu/index.d.ts +1 -1
  247. package/dist/types/menu/index.d.ts.map +1 -1
  248. package/dist/types/menu/menu-defaults.d.ts.map +1 -1
  249. package/dist/types/menu/menu-parts.d.ts.map +1 -1
  250. package/dist/types/menu/menu-sheet-step.d.ts +6 -0
  251. package/dist/types/menu/menu-sheet-step.d.ts.map +1 -0
  252. package/dist/types/menu/menu.d.ts +1 -1
  253. package/dist/types/menu/menu.d.ts.map +1 -1
  254. package/dist/types/menu/menu.types.d.ts +15 -0
  255. package/dist/types/menu/menu.types.d.ts.map +1 -1
  256. package/dist/types/menu/use-menu-sheet.d.ts +9 -0
  257. package/dist/types/menu/use-menu-sheet.d.ts.map +1 -0
  258. package/dist/types/pagination/pagination-parts.d.ts.map +1 -1
  259. package/dist/types/picker-panel/picker-layer.d.ts +4 -1
  260. package/dist/types/picker-panel/picker-layer.d.ts.map +1 -1
  261. package/dist/types/picker-panel/use-picker-layer.d.ts.map +1 -1
  262. package/dist/types/popover/popover-parts.d.ts.map +1 -1
  263. package/dist/types/select/index.d.ts +1 -1
  264. package/dist/types/select/index.d.ts.map +1 -1
  265. package/dist/types/select/select-defaults.d.ts.map +1 -1
  266. package/dist/types/select/select-parts.d.ts.map +1 -1
  267. package/dist/types/select/select.d.ts +6 -2
  268. package/dist/types/select/select.d.ts.map +1 -1
  269. package/dist/types/select/select.types.d.ts +9 -0
  270. package/dist/types/select/select.types.d.ts.map +1 -1
  271. package/dist/types/select/use-select-sheet.d.ts +9 -0
  272. package/dist/types/select/use-select-sheet.d.ts.map +1 -0
  273. package/dist/types/toggle/toggle.d.ts.map +1 -1
  274. package/dist/types/toggle/toggle.types.d.ts +4 -1
  275. package/dist/types/toggle/toggle.types.d.ts.map +1 -1
  276. package/dist/types/toggle-group/toggle-group-parts.d.ts.map +1 -1
  277. package/dist/types/toggle-group/toggle-group.types.d.ts +4 -1
  278. package/dist/types/toggle-group/toggle-group.types.d.ts.map +1 -1
  279. package/dist/{upload-CPl38p-S.js → upload-CuMOaPK3.js} +1 -1
  280. package/dist/upload.js +1 -1
  281. package/dist/{use-date-picker-DWV7KWS7.js → use-date-picker-DdSX3RE4.js} +2 -2
  282. package/dist/{use-picker-draft-BJlHcb6J.js → use-picker-draft-I_pxqYsc.js} +48 -35
  283. package/package.json +6 -6
  284. package/dist/field-vOVzvq5t.js +0 -368
  285. package/dist/menu-parts-DgL617_H.js +0 -814
  286. package/dist/select-BkUuIVBK.js +0 -1017
@@ -6,22 +6,47 @@
6
6
  ## Import
7
7
 
8
8
  ```tsx
9
- import { ContextMenu, ContextMenuTrigger, ContextMenuDefaultsProvider } from '@slotted/react';
10
- import { MenuContent, MenuItem, MenuSeparator } from '@slotted/react';
9
+ import {
10
+ ContextMenu,
11
+ ContextMenuTrigger,
12
+ ContextMenuDefaultsProvider,
13
+ } from '@slotted/react/context-menu';
14
+ import { MenuContent, MenuItem, MenuSeparator } from '@slotted/react/menu';
11
15
  ```
12
16
 
13
17
  ## Minimal example
14
18
 
15
- Excerpt — not a complete module
19
+ Example
16
20
 
17
21
  ```tsx
18
- <ContextMenu>
19
- <ContextMenuTrigger className="tile">…</ContextMenuTrigger>
20
- <MenuContent aria-label="Document actions">
21
- <MenuItem>Open</MenuItem>
22
- <MenuItem tone="danger">Move to trash</MenuItem>
23
- </MenuContent>
24
- </ContextMenu>;
22
+ import { ContextMenu, ContextMenuTrigger } from '@slotted/react/context-menu';
23
+ import { MenuContent, MenuItem, MenuSeparator } from '@slotted/react/menu';
24
+ import { Stack } from '@slotted/react/stack';
25
+ import { Heading, Text } from '@slotted/react/typography';
26
+
27
+ export default function ContextMenuBasic() {
28
+ return (
29
+ <ContextMenu>
30
+ <ContextMenuTrigger>
31
+ <Stack gap={1}>
32
+ <Heading level={2} size="md">
33
+ Q3 board deck.pdf
34
+ </Heading>
35
+ <Text size="sm" tone="muted">
36
+ 4.2 MB, edited yesterday. Right-click anywhere on this file.
37
+ </Text>
38
+ </Stack>
39
+ </ContextMenuTrigger>
40
+ <MenuContent>
41
+ <MenuItem>Open</MenuItem>
42
+ <MenuItem>Rename</MenuItem>
43
+ <MenuItem>Duplicate</MenuItem>
44
+ <MenuSeparator />
45
+ <MenuItem tone="danger">Move to trash</MenuItem>
46
+ </MenuContent>
47
+ </ContextMenu>
48
+ );
49
+ }
25
50
  ```
26
51
 
27
52
  ## Anatomy
@@ -39,13 +64,13 @@ Excerpt — not a complete module
39
64
  | `onOpenChange` | `(open, request) => void` | — | ContextMenu | Asked before the menu opens or closes, with the reason and the originating event, and refusable. |
40
65
  | `longPress` | `boolean` | true | ContextMenu | Whether holding the target on touch and pen opens the menu. |
41
66
  | `longPressDelay` | `number` | 500 | ContextMenu | Milliseconds the press is held before the menu opens; movement past ten pixels or lifting first cancels it. |
42
- | `disabled` | `boolean` | false | ContextMenu | The family never opens and the browser's own menu passes through. The target carries data-disabled. |
43
- | `size, side, align, closeOnSelect, loop, typeahead, …` | `MenuProps` | — | ContextMenu | Every prop of Menu except anchor and finalFocus, which the family decides, reaches the menu it renders. |
67
+ | `disabled` | `boolean` | false | ContextMenu | The context menu never opens and the browser's own menu passes through. The target carries data-disabled. |
68
+ | `size, side, align, closeOnSelect, loop, typeahead, …` | `MenuProps` | — | ContextMenu | Every prop of Menu except anchor and finalFocus, which ContextMenu decides, reaches the menu it renders. |
44
69
  | `render` | `(props) => ReactNode` | — | ContextMenuTrigger | Renders the consumer's own element as the target — a tr, a li — with the identity, the state and the listeners on it. |
45
70
  | `ContextMenuDefaultsProvider` | `component` | — | Application | Sets longPress, longPressDelay and disabled once for a subtree. A menu that states one itself still wins. The surface reads MenuDefaultsProvider. |
46
71
  | `MenuContent, MenuItem, …` | `components` | — | Inside a ContextMenu | The surface is the menu family unchanged: submenus, checkbox and radio items, groups, shortcuts, typeahead and tone reach the context menu without a second API. Nothing is re-exported. |
47
72
  | `ref` | `prop` | — | ContextMenu | A MenuHandle carrying open(), close() and focus(). open() hangs the menu from the target. |
48
- | `aria-label` | `attribute` | — | MenuContent | The surface is named after the target's text unless given one — right for a row, wrong for a canvas. |
73
+ | `aria-label` | `attribute` | — | MenuContent | The surface is named after the target's text unless given an aria-label. The text fits a row and does not fit a canvas. |
49
74
  | `native props` | `attributes` | — | ContextMenuTrigger | Anything a div takes reaches the target, and a consumer's own onContextMenu or onPointerDown runs before the family's; preventDefault from it stops the family. |
50
75
 
51
76
  ## Events
@@ -63,10 +88,10 @@ Excerpt — not a complete module
63
88
 
64
89
  ## Rules
65
90
 
66
- - The platform supplies the gesture: the contextmenu event is the secondary click, the Menu key and Shift+F10 on every desktop, and the family answers all three with preventDefault while it is enabled and with nothing while it is disabled, so a reader is never left with no menu at all.
67
- - The family writes no aria-haspopup on the target — it is not permitted on a generic element, and no surveyed library writes it — so a screen reader is not told the region has a menu. That is why every command in a context menu also exists by another path, and the reference page shows the path.
91
+ - The platform supplies the gesture: the contextmenu event is the secondary click, the Menu key and Shift+F10 on every desktop, and the target answers all three with preventDefault while the context menu is enabled and with nothing while it is disabled, so a reader is never left with no menu at all.
92
+ - The target writes no aria-haspopup — it is not permitted on a generic element — so a screen reader is not told the region has a menu. For that reason every command in a context menu also exists by another path, and the other-path example shows one.
68
93
  - Focus goes to the first item on open and, on Escape or after a command, back to whatever held it when the menu opened — the checkbox in the row, the tile itself — rather than to a trigger that never had it. A press elsewhere leaves focus where the reader put it.
69
- - The family writes no tabindex: a target the page made focusable can be opened from the keyboard, and one it did not cannot. A tab stop on every wrapped region would be one a grid with roving focus cannot afford.
94
+ - The target writes no tabindex. A target the page made focusable opens from the keyboard; one it did not make focusable does not. A tab stop on every wrapped region would break a grid with roving focus.
70
95
 
71
96
  ## Tokens
72
97
 
@@ -74,6 +99,22 @@ Excerpt — not a complete module
74
99
 
75
100
  ## Examples
76
101
 
102
+ ### Playground
103
+
104
+ The menu hangs from the tile because it opened from script; right-click anywhere on the tile and it moves to the point. The controls under the canvas change the long press and disable the family, which hands the click to the browser.
105
+
106
+ Excerpt — not a complete module
107
+
108
+ ```tsx
109
+ <ContextMenu>
110
+ <ContextMenuTrigger className="tile">…</ContextMenuTrigger>
111
+ <MenuContent aria-label="Document actions">
112
+ <MenuItem>Open</MenuItem>
113
+ <MenuItem tone="danger">Move to trash</MenuItem>
114
+ </MenuContent>
115
+ </ContextMenu>;
116
+ ```
117
+
77
118
  ### The target
78
119
 
79
120
  The tile is the target and paints nothing at rest; while the menu shows, an inward one-pixel mark laid over the tile says which one the commands act on, following the tile’s own corner. The tile on the right was opened from script, so the menu hangs from it the way a keyboard opening places it. A target wrapped around a card would frame the card’s round corners with a square: make the card the target.
@@ -93,101 +134,237 @@ Excerpt — not a complete module
93
134
 
94
135
  A list of files with one ContextMenu around all of them. Right-click any row: the request carries the event, the handler reads the row from it, and the menu names the file it acts on. Mounting a menu per row is the shape this composition exists to avoid.
95
136
 
96
- Excerpt — not a complete module
137
+ Example
97
138
 
98
139
  ```tsx
99
- const [file, setFile] = useState<string | null>(null);
100
-
101
- <ContextMenu
102
- onOpenChange={(open, request) => {
103
- if (!open) return;
104
- const row = (request.source as Event).target as HTMLElement;
105
- setFile(row.closest('[data-file]')?.getAttribute('data-file') ?? null);
106
- }}
107
- >
108
- <ContextMenuTrigger render={(props) => <ul {...props} />}>
109
- {files.map((name) => (
110
- <li key={name} data-file={name}>
111
- {name}
112
- </li>
113
- ))}
114
- </ContextMenuTrigger>
115
- <MenuContent aria-label={file ?? 'File actions'}>…</MenuContent>
116
- </ContextMenu>;
140
+ import { useState } from 'react';
141
+ import { ContextMenu, ContextMenuTrigger } from '@slotted/react/context-menu';
142
+ import { MenuContent, MenuItem, MenuSeparator } from '@slotted/react/menu';
143
+ import type { MenuChangeRequest } from '@slotted/react/menu';
144
+ import { Stack } from '@slotted/react/stack';
145
+ import { Text } from '@slotted/react/typography';
146
+
147
+ const FILES = [
148
+ { name: 'Supplier contract.docx', size: '180 KB' },
149
+ { name: 'Stock count March.xlsx', size: '640 KB' },
150
+ { name: 'Carrier rates 2026.pdf', size: '2.1 MB' },
151
+ ];
152
+
153
+ export default function ContextMenuRows() {
154
+ const [file, setFile] = useState<string | null>(null);
155
+
156
+ function handleOpenChange(open: boolean, request: MenuChangeRequest) {
157
+ if (open) setFile(fileOf(request.source));
158
+ }
159
+
160
+ return (
161
+ <Stack gap={3}>
162
+ <ContextMenu onOpenChange={handleOpenChange}>
163
+ <ContextMenuTrigger>
164
+ <Stack gap={3}>
165
+ {FILES.map((entry) => (
166
+ <Text data-file={entry.name} key={entry.name}>
167
+ {entry.name} · {entry.size}
168
+ </Text>
169
+ ))}
170
+ </Stack>
171
+ </ContextMenuTrigger>
172
+ <MenuContent aria-label={file ?? 'File actions'}>
173
+ <MenuItem>Open</MenuItem>
174
+ <MenuItem>Download</MenuItem>
175
+ <MenuSeparator />
176
+ <MenuItem tone="danger">Move to trash</MenuItem>
177
+ </MenuContent>
178
+ </ContextMenu>
179
+ <Text size="sm" tone="muted">
180
+ {file === null ? 'Right-click a file.' : `The menu acts on ${file}.`}
181
+ </Text>
182
+ </Stack>
183
+ );
184
+ }
185
+
186
+ function fileOf(source: unknown): string | null {
187
+ const target = (source as Event | undefined)?.target;
188
+ const row = target instanceof Element ? target.closest('[data-file]') : null;
189
+
190
+ return row?.getAttribute('data-file') ?? null;
191
+ }
117
192
  ```
118
193
 
119
194
  ### From the keyboard
120
195
 
121
196
  Tab to the tile — it is focusable because the page said so, with tabIndex — and press Shift+F10 or the Menu key. The menu hangs from the tile rather than from wherever the pointer last was, focus lands on the first item, and Escape brings it back to the tile.
122
197
 
123
- Excerpt — not a complete module
198
+ Example
124
199
 
125
200
  ```tsx
126
- <ContextMenu>
127
- <ContextMenuTrigger tabIndex={0} aria-label="Release notes 4.2">
128
- …
129
- </ContextMenuTrigger>
130
- <MenuContent>…</MenuContent>
131
- </ContextMenu>;
201
+ import { ContextMenu, ContextMenuTrigger } from '@slotted/react/context-menu';
202
+ import { MenuContent, MenuItem, MenuSeparator } from '@slotted/react/menu';
203
+ import { Stack } from '@slotted/react/stack';
204
+ import { Heading, Text } from '@slotted/react/typography';
205
+
206
+ export default function ContextMenuKeyboard() {
207
+ return (
208
+ <ContextMenu>
209
+ <ContextMenuTrigger tabIndex={0}>
210
+ <Stack gap={1}>
211
+ <Heading level={2} size="md">
212
+ Release notes 4.2
213
+ </Heading>
214
+ <Text size="sm" tone="muted">
215
+ Press Tab to focus this item, then Shift+F10 or the Menu key.
216
+ </Text>
217
+ </Stack>
218
+ </ContextMenuTrigger>
219
+ <MenuContent>
220
+ <MenuItem>Open</MenuItem>
221
+ <MenuItem>Copy link</MenuItem>
222
+ <MenuSeparator />
223
+ <MenuItem>Archive</MenuItem>
224
+ </MenuContent>
225
+ </ContextMenu>
226
+ );
227
+ }
132
228
  ```
133
229
 
134
230
  ### On touch
135
231
 
136
232
  There is no secondary button on a touch screen: holding the tile for half a second opens the menu at the finger, while text selection and the platform's callout are held off for the duration of the press. Lifting or moving past ten pixels before then cancels it, so a scroll that starts on the tile is still a scroll.
137
233
 
138
- Excerpt — not a complete module
234
+ Example
139
235
 
140
236
  ```tsx
141
- <ContextMenuDefaultsProvider longPressDelay={400}>
142
- <ContextMenu>
143
- <ContextMenuTrigger>…</ContextMenuTrigger>
144
- <MenuContent>…</MenuContent>
145
- </ContextMenu>
146
- </ContextMenuDefaultsProvider>;
237
+ import { ContextMenu, ContextMenuTrigger } from '@slotted/react/context-menu';
238
+ import { MenuContent, MenuItem } from '@slotted/react/menu';
239
+ import { Stack } from '@slotted/react/stack';
240
+ import { Heading, Text } from '@slotted/react/typography';
241
+
242
+ export default function ContextMenuTouch() {
243
+ return (
244
+ <ContextMenu longPressDelay={800}>
245
+ <ContextMenuTrigger>
246
+ <Stack gap={1}>
247
+ <Heading level={2} size="md">
248
+ Order SO-10482
249
+ </Heading>
250
+ <Text size="sm" tone="muted">
251
+ Out for delivery. On touch, hold for 800 ms.
252
+ </Text>
253
+ </Stack>
254
+ </ContextMenuTrigger>
255
+ <MenuContent>
256
+ <MenuItem>View order</MenuItem>
257
+ <MenuItem>Track delivery</MenuItem>
258
+ <MenuItem>Print packing slip</MenuItem>
259
+ </MenuContent>
260
+ </ContextMenu>
261
+ );
262
+ }
147
263
  ```
148
264
 
149
265
  ### The other path
150
266
 
151
267
  A context menu is found by convention, and a reader who never right-clicks must still reach every command in it: the same actions sit behind the Actions button on the tile, as a menu opened the ordinary way. The two surfaces are one MenuContent rendered twice.
152
268
 
153
- Excerpt — not a complete module
269
+ Example
154
270
 
155
271
  ```tsx
156
- const actions = (
157
- <MenuContent aria-label="Document actions">
158
- <MenuItem>Open</MenuItem>
159
- <MenuItem>Rename</MenuItem>
160
- </MenuContent>
161
- );
162
-
163
- <ContextMenu>
164
- <ContextMenuTrigger className="tile">
165
- <Menu>
166
- <MenuTrigger
167
- render={(props) => (
168
- <Button {...props} variant="ghost">
169
- Actions
170
- </Button>
171
- )}
172
- />
272
+ import { Button } from '@slotted/react/button';
273
+ import { ContextMenu, ContextMenuTrigger } from '@slotted/react/context-menu';
274
+ import { Inline } from '@slotted/react/inline';
275
+ import { Menu, MenuContent, MenuItem, MenuTrigger } from '@slotted/react/menu';
276
+ import { Stack } from '@slotted/react/stack';
277
+ import { Heading, Text } from '@slotted/react/typography';
278
+
279
+ export default function ContextMenuOtherPath() {
280
+ const actions = (
281
+ <MenuContent aria-label="Shipment actions">
282
+ <MenuItem>Track shipment</MenuItem>
283
+ <MenuItem>Print label</MenuItem>
284
+ <MenuItem>Contact carrier</MenuItem>
285
+ </MenuContent>
286
+ );
287
+
288
+ return (
289
+ <ContextMenu>
290
+ <ContextMenuTrigger>
291
+ <Stack gap={2}>
292
+ <Heading level={2} size="md">
293
+ Shipment SH-20418
294
+ </Heading>
295
+ <Text size="sm" tone="muted">
296
+ Right-click this shipment or press Actions: both open the same commands.
297
+ </Text>
298
+ <Inline>
299
+ <Menu>
300
+ <MenuTrigger
301
+ render={(props) => (
302
+ <Button {...props} variant="outline">
303
+ Actions
304
+ </Button>
305
+ )}
306
+ />
307
+ {actions}
308
+ </Menu>
309
+ </Inline>
310
+ </Stack>
311
+ </ContextMenuTrigger>
173
312
  {actions}
174
- </Menu>
175
- </ContextMenuTrigger>
176
- {actions}
177
- </ContextMenu>;
313
+ </ContextMenu>
314
+ );
315
+ }
178
316
  ```
179
317
 
180
318
  ### Disabled
181
319
 
182
- A disabled family suppresses nothing: the browser's own menu opens on the secondary click, because taking both away would leave the reader with none. The target says so with data-disabled and paints nothing, since the content it wraps still works.
320
+ A disabled context menu suppresses nothing: the browser's own menu opens on the secondary click, because taking both away would leave the reader with none. The target says so with data-disabled and paints nothing, since the content it wraps still works.
183
321
 
184
- Excerpt — not a complete module
322
+ Example
185
323
 
186
324
  ```tsx
187
- <ContextMenu disabled>
188
- <ContextMenuTrigger>…</ContextMenuTrigger>
189
- <MenuContent>…</MenuContent>
190
- </ContextMenu>;
325
+ import { ContextMenu, ContextMenuTrigger } from '@slotted/react/context-menu';
326
+ import { MenuContent, MenuItem } from '@slotted/react/menu';
327
+ import { Stack } from '@slotted/react/stack';
328
+ import { Heading, Text } from '@slotted/react/typography';
329
+
330
+ export default function ContextMenuDisabled() {
331
+ return (
332
+ <Stack gap={4}>
333
+ <ContextMenu>
334
+ <ContextMenuTrigger>
335
+ <Stack gap={1}>
336
+ <Heading level={2} size="md">
337
+ Draft report
338
+ </Heading>
339
+ <Text size="sm" tone="muted">
340
+ Enabled: right-click opens the commands.
341
+ </Text>
342
+ </Stack>
343
+ </ContextMenuTrigger>
344
+ <MenuContent>
345
+ <MenuItem>Edit</MenuItem>
346
+ <MenuItem>Publish</MenuItem>
347
+ </MenuContent>
348
+ </ContextMenu>
349
+ <ContextMenu disabled>
350
+ <ContextMenuTrigger>
351
+ <Stack gap={1}>
352
+ <Heading level={2} size="md">
353
+ Published report
354
+ </Heading>
355
+ <Text size="sm" tone="muted">
356
+ Disabled: right-click opens the browser menu.
357
+ </Text>
358
+ </Stack>
359
+ </ContextMenuTrigger>
360
+ <MenuContent>
361
+ <MenuItem>Edit</MenuItem>
362
+ <MenuItem>Unpublish</MenuItem>
363
+ </MenuContent>
364
+ </ContextMenu>
365
+ </Stack>
366
+ );
367
+ }
191
368
  ```
192
369
 
193
370
  ### States
@@ -204,3 +381,191 @@ Excerpt — not a complete module
204
381
  opacity: 0.9;
205
382
  }
206
383
  ```
384
+
385
+ ### canvas.tsx
386
+
387
+ Example
388
+
389
+ ```tsx
390
+ import { useState } from 'react';
391
+ import { ContextMenu, ContextMenuTrigger } from '@slotted/react/context-menu';
392
+ import {
393
+ MenuCheckboxItem,
394
+ MenuContent,
395
+ MenuGroup,
396
+ MenuItem,
397
+ MenuSeparator,
398
+ } from '@slotted/react/menu';
399
+ import { Stack } from '@slotted/react/stack';
400
+ import { Heading, Text } from '@slotted/react/typography';
401
+
402
+ export default function ContextMenuCanvas() {
403
+ const [labels, setLabels] = useState(true);
404
+ const [paths, setPaths] = useState(false);
405
+
406
+ return (
407
+ <ContextMenu>
408
+ <ContextMenuTrigger>
409
+ <Stack gap={1}>
410
+ <Heading level={2} size="md">
411
+ Warehouse floor plan
412
+ </Heading>
413
+ <Text size="sm" tone="muted">
414
+ Aisles A1 to D4. {labels ? 'Aisle labels on.' : 'Aisle labels off.'}{' '}
415
+ {paths ? 'Pick paths on.' : 'Pick paths off.'}
416
+ </Text>
417
+ </Stack>
418
+ </ContextMenuTrigger>
419
+ <MenuContent aria-label="Floor plan actions">
420
+ <MenuGroup label="View">
421
+ <MenuCheckboxItem checked={labels} onCheckedChange={setLabels}>
422
+ Aisle labels
423
+ </MenuCheckboxItem>
424
+ <MenuCheckboxItem checked={paths} onCheckedChange={setPaths}>
425
+ Pick paths
426
+ </MenuCheckboxItem>
427
+ </MenuGroup>
428
+ <MenuSeparator />
429
+ <MenuItem>Export as PDF</MenuItem>
430
+ </MenuContent>
431
+ </ContextMenu>
432
+ );
433
+ }
434
+ ```
435
+
436
+ ### controlled.tsx
437
+
438
+ Example
439
+
440
+ ```tsx
441
+ import { useState } from 'react';
442
+ import { ContextMenu, ContextMenuTrigger } from '@slotted/react/context-menu';
443
+ import { MenuContent, MenuItem } from '@slotted/react/menu';
444
+ import type { MenuChangeRequest } from '@slotted/react/menu';
445
+ import { Stack } from '@slotted/react/stack';
446
+ import { Heading, Text } from '@slotted/react/typography';
447
+
448
+ export default function ContextMenuControlled() {
449
+ const [open, setOpen] = useState(false);
450
+ const [last, setLast] = useState('Closed');
451
+
452
+ function handleOpenChange(next: boolean, request: MenuChangeRequest) {
453
+ setOpen(next);
454
+ setLast(`${next ? 'Opened' : 'Closed'} by ${request.reason}`);
455
+ }
456
+
457
+ return (
458
+ <Stack gap={3}>
459
+ <ContextMenu onOpenChange={handleOpenChange} open={open}>
460
+ <ContextMenuTrigger tabIndex={0}>
461
+ <Stack gap={1}>
462
+ <Heading level={2} size="md">
463
+ Purchase order PO-5521
464
+ </Heading>
465
+ <Text size="sm" tone="muted">
466
+ Right-click, press Shift+F10, press Escape or click elsewhere.
467
+ </Text>
468
+ </Stack>
469
+ </ContextMenuTrigger>
470
+ <MenuContent>
471
+ <MenuItem>Approve</MenuItem>
472
+ <MenuItem>Request changes</MenuItem>
473
+ <MenuItem>Send to supplier</MenuItem>
474
+ </MenuContent>
475
+ </ContextMenu>
476
+ <Text size="sm" tone="muted">
477
+ {last}
478
+ </Text>
479
+ </Stack>
480
+ );
481
+ }
482
+ ```
483
+
484
+ ### defaults.tsx
485
+
486
+ Example
487
+
488
+ ```tsx
489
+ import {
490
+ ContextMenu,
491
+ ContextMenuDefaultsProvider,
492
+ ContextMenuTrigger,
493
+ } from '@slotted/react/context-menu';
494
+ import { MenuContent, MenuItem } from '@slotted/react/menu';
495
+ import { Stack } from '@slotted/react/stack';
496
+ import { Heading, Text } from '@slotted/react/typography';
497
+
498
+ export default function ContextMenuDefaults() {
499
+ return (
500
+ <ContextMenuDefaultsProvider longPressDelay={800}>
501
+ <Stack gap={4}>
502
+ <ContextMenu>
503
+ <ContextMenuTrigger>
504
+ <Stack gap={1}>
505
+ <Heading level={2} size="md">
506
+ Inbound dock
507
+ </Heading>
508
+ <Text size="sm" tone="muted">
509
+ Holds for 800 ms, the delay the provider sets.
510
+ </Text>
511
+ </Stack>
512
+ </ContextMenuTrigger>
513
+ <MenuContent>
514
+ <MenuItem>Schedule unloading</MenuItem>
515
+ <MenuItem>View arrivals</MenuItem>
516
+ </MenuContent>
517
+ </ContextMenu>
518
+ <ContextMenu longPressDelay={300}>
519
+ <ContextMenuTrigger>
520
+ <Stack gap={1}>
521
+ <Heading level={2} size="md">
522
+ Outbound dock
523
+ </Heading>
524
+ <Text size="sm" tone="muted">
525
+ Holds for 300 ms, the delay this target sets.
526
+ </Text>
527
+ </Stack>
528
+ </ContextMenuTrigger>
529
+ <MenuContent>
530
+ <MenuItem>Schedule loading</MenuItem>
531
+ <MenuItem>View departures</MenuItem>
532
+ </MenuContent>
533
+ </ContextMenu>
534
+ </Stack>
535
+ </ContextMenuDefaultsProvider>
536
+ );
537
+ }
538
+ ```
539
+
540
+ ### long-press-off.tsx
541
+
542
+ Example
543
+
544
+ ```tsx
545
+ import { ContextMenu, ContextMenuTrigger } from '@slotted/react/context-menu';
546
+ import { MenuContent, MenuItem } from '@slotted/react/menu';
547
+ import { Stack } from '@slotted/react/stack';
548
+ import { Heading, Text } from '@slotted/react/typography';
549
+
550
+ export default function ContextMenuLongPressOff() {
551
+ return (
552
+ <ContextMenu longPress={false}>
553
+ <ContextMenuTrigger tabIndex={0}>
554
+ <Stack gap={1}>
555
+ <Heading level={2} size="md">
556
+ Invoice INV-3307
557
+ </Heading>
558
+ <Text size="sm" tone="muted">
559
+ Touch and pen keep their own long-press behavior here.
560
+ </Text>
561
+ </Stack>
562
+ </ContextMenuTrigger>
563
+ <MenuContent>
564
+ <MenuItem>Send reminder</MenuItem>
565
+ <MenuItem>Record payment</MenuItem>
566
+ <MenuItem>Download PDF</MenuItem>
567
+ </MenuContent>
568
+ </ContextMenu>
569
+ );
570
+ }
571
+ ```
@@ -226,6 +226,20 @@
226
226
  "appliesTo": "FieldHelp",
227
227
  "description": "Whether the hint starts open, read once when FieldHelp owns the state."
228
228
  },
229
+ {
230
+ "name": "presentation",
231
+ "type": "'toggletip' | 'auto'",
232
+ "defaultValue": "toggletip",
233
+ "appliesTo": "FieldHelp",
234
+ "description": "auto draws the hint as a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, headed by the field’s label beside a close control, dismissed by its grip, its scrim, Escape and the platform’s way back, with focus given back to the help button. Anywhere else it is the toggletip."
235
+ },
236
+ {
237
+ "name": "helpPresentation",
238
+ "type": "'toggletip' | 'auto'",
239
+ "defaultValue": "toggletip",
240
+ "appliesTo": "FieldDefaultsProvider",
241
+ "description": "The presentation of every FieldHelp inside, unless a FieldHelp states its own."
242
+ },
229
243
  {
230
244
  "name": "side",
231
245
  "type": "'top' | 'bottom' | 'inline-start' | 'inline-end' | 'left' | 'right'",
@@ -317,7 +331,7 @@
317
331
  {
318
332
  "name": "onOpenChange",
319
333
  "payload": "(open: boolean, request: TooltipChangeRequest)",
320
- "when": "On FieldHelp, before the hint opens or closes, once per transition. request.reason is pointer for a hover or a press; keyboard for focus, Enter or Space; or escape, blur or programmatic. request.cancel() refuses the change."
334
+ "when": "On FieldHelp, before the hint opens or closes, once per transition. request.reason is pointer for a hover or a press; keyboard for focus, Enter or Space; or escape, blur or programmatic. The sheet of presentation=\"auto\" also reports outsidePress for a press on its scrim, and dismiss for its close control and the platform’s way back. request.cancel() refuses the change."
321
335
  }
322
336
  ],
323
337
  "accessibility": [
@@ -71,6 +71,8 @@ export default function FieldBasic() {
71
71
  | `children` | `ReactNode` | — | FieldHelp | The help text. Written once, it reaches the tooltip and the hidden node that describes the button and the control. |
72
72
  | `open` | `boolean` | — | FieldHelp | Whether the hint is showing, controlled. Pair it with onOpenChange; leave both unset and FieldHelp owns the state. |
73
73
  | `defaultOpen` | `boolean` | false | FieldHelp | Whether the hint starts open, read once when FieldHelp owns the state. |
74
+ | `presentation` | `'toggletip' \| 'auto'` | toggletip | FieldHelp | auto draws the hint as a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, headed by the field’s label beside a close control, dismissed by its grip, its scrim, Escape and the platform’s way back, with focus given back to the help button. Anywhere else it is the toggletip. |
75
+ | `helpPresentation` | `'toggletip' \| 'auto'` | toggletip | FieldDefaultsProvider | The presentation of every FieldHelp inside, unless a FieldHelp states its own. |
74
76
  | `side` | `'top' \| 'bottom' \| 'inline-start' \| 'inline-end' \| 'left' \| 'right'` | top | FieldHelp | Where the hint opens. It flips to the opposite side when there is no room. |
75
77
  | `aria-label` | `string` | messages.help | FieldHelp | The accessible name of the help button. Unset, it is the field’s help message; set, it applies to this button alone. |
76
78
  | `type` | `'button' \| 'submit' \| 'reset'` | button | FieldAction | button by default, so the action never submits the form it sits in. A link rendered through render receives the props without it. |
@@ -88,7 +90,7 @@ export default function FieldBasic() {
88
90
 
89
91
  | Name | Payload | When |
90
92
  | --- | --- | --- |
91
- | `onOpenChange` | `(open: boolean, request: TooltipChangeRequest)` | On FieldHelp, before the hint opens or closes, once per transition. request.reason is pointer for a hover or a press; keyboard for focus, Enter or Space; or escape, blur or programmatic. request.cancel() refuses the change. |
93
+ | `onOpenChange` | `(open: boolean, request: TooltipChangeRequest)` | On FieldHelp, before the hint opens or closes, once per transition. request.reason is pointer for a hover or a press; keyboard for focus, Enter or Space; or escape, blur or programmatic. The sheet of presentation="auto" also reports outsidePress for a press on its scrim, and dismiss for its close control and the platform’s way back. request.cancel() refuses the change. |
92
94
 
93
95
  ## Axes and defaults
94
96