You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| children\* | `React.ReactElement[]` | - | Required. Recommended: `ActionMenu.Button` or `ActionMenu.Anchor` with `ActionMenu.Overlay` |
290
-
| open | `boolean` | - | Optional. If defined, will control the open/closed state of the overlay. Must be used in conjuction with `onOpenChange`. |
291
-
| onOpenChange | `(open: boolean) => void` | - | Optional. If defined, will control the open/closed state of the overlay. Must be used in conjuction with `open`. |
292
-
| anchorRef | `React.RefObject<HTMLElement>` | - | Optional. Useful for defining an external anchor |
285
+
<PropsTable>
286
+
<PropsTableRow
287
+
name="children"
288
+
required
289
+
type="React.ReactElement[]"
290
+
description={
291
+
<>
292
+
Recommended:<InlineCode>ActionMenu.Button</InlineCode> or <InlineCode>ActionMenu.Anchor</InlineCode>with{''}
293
+
<InlineCode>ActionMenu.Overlay</InlineCode>
294
+
</>
295
+
}
296
+
/>
297
+
<PropsTableRow
298
+
name="open"
299
+
type="boolean"
300
+
defaultValue="false"
301
+
description={
302
+
<>
303
+
If defined, will control the open/closed state of the overlay. Must be used in conjuction with{''}
304
+
<InlineCode>onOpenChange</InlineCode>.
305
+
</>
306
+
}
307
+
/>
308
+
<PropsTableRow
309
+
name="onOpenChange"
310
+
type="(open: boolean) => void"
311
+
description={
312
+
<>
313
+
If defined, will control the open/closed state of the overlay. Must be used in conjuction with{''}
314
+
<InlineCode>open</InlineCode>.
315
+
</>
316
+
}
317
+
/>
318
+
<PropsTableRow
319
+
name="anchorRef"
320
+
type="React.RefObject<HTMLElement>"
321
+
description="Useful for defining an external anchor"
| [Button v2 props](/drafts/Button2#api-reference) | - | You can pass all of the props that you would pass to a [`Button`](/drafts/Button2) component like `variant`, `sx` |
0 commit comments