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
Copy file name to clipboardExpand all lines: docs/pages/api-docs/menu.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,16 +35,16 @@ The `MuiMenu` name can be used for providing [default props](/customization/glob
35
35
| <spanclass="prop-name">disableAutoFocusItem</span> | <spanclass="prop-type">bool</span> | <spanclass="prop-default">false</span> | When opening the menu will not focus the active item but the `[role="menu"]` unless `autoFocus` is also set to `false`. Not using the default means not following WAI-ARIA authoring practices. Please be considerate about possible accessibility implications. |
36
36
| <spanclass="prop-name">MenuListProps</span> | <spanclass="prop-type">object</span> | <spanclass="prop-default">{}</span> | Props applied to the [`MenuList`](/api/menu-list/) element. |
37
37
| <spanclass="prop-name">onClose</span> | <spanclass="prop-type">func</span> || Callback fired when the component requests to be closed.<br><br>**Signature:**<br>`function(event: object, reason: string) => void`<br>*event:* The event source of the callback.<br>*reason:* Can be: `"escapeKeyDown"`, `"backdropClick"`, `"tabKeyDown"`. |
38
-
|~~<spanclass="prop-name">onEnter</span>~~| <spanclass="prop-type">func</span> ||*Deprecated*. Use the `TransitionProps` prop instead.<br><br>Callback fired before the transition is entering. |
39
-
|~~<spanclass="prop-name">onEntered</span>~~| <spanclass="prop-type">func</span> ||*Deprecated*. Use the `TransitionProps` prop instead.<br><br>Callback fired when the transition has entered. |
40
-
|~~<spanclass="prop-name">onEntering</span>~~| <spanclass="prop-type">func</span> ||*Deprecated*. Use the `TransitionProps` prop instead.<br><br>Callback fired when the transition is entering. |
41
-
|~~<spanclass="prop-name">onExit</span>~~| <spanclass="prop-type">func</span> ||*Deprecated*. Use the `TransitionProps` prop instead.<br><br>Callback fired before the transition is exiting. |
42
-
|~~<spanclass="prop-name">onExited</span>~~| <spanclass="prop-type">func</span> ||*Deprecated*. Use the `TransitionProps` prop instead.<br><br>Callback fired when the transition has exited. |
43
-
|~~<spanclass="prop-name">onExiting</span>~~| <spanclass="prop-type">func</span> ||*Deprecated*. Use the `TransitionProps` prop instead.<br><br>Callback fired when the transition is exiting. |
38
+
|~~<spanclass="prop-name">onEnter</span>~~| <spanclass="prop-type">func</span> ||*Deprecated*. Use the `TransitionProps` prop instead.<br><br>Callback fired before the Menu enters. |
39
+
|~~<spanclass="prop-name">onEntered</span>~~| <spanclass="prop-type">func</span> ||*Deprecated*. Use the `TransitionProps` prop instead.<br><br>Callback fired when the Menu has entered. |
40
+
|~~<spanclass="prop-name">onEntering</span>~~| <spanclass="prop-type">func</span> ||*Deprecated*. Use the `TransitionProps` prop instead.<br><br>Callback fired when the Menu is entering. |
41
+
|~~<spanclass="prop-name">onExit</span>~~| <spanclass="prop-type">func</span> ||*Deprecated*. Use the `TransitionProps` prop instead.<br><br>Callback fired before the Menu exits. |
42
+
|~~<spanclass="prop-name">onExited</span>~~| <spanclass="prop-type">func</span> ||*Deprecated*. Use the `TransitionProps` prop instead.<br><br>Callback fired when the Menu has exited. |
43
+
|~~<spanclass="prop-name">onExiting</span>~~| <spanclass="prop-type">func</span> ||*Deprecated*. Use the `TransitionProps` prop instead.<br><br>Callback fired when the Menu is exiting. |
44
44
| <spanclass="prop-name required">open<abbrtitle="required">*</abbr></span> | <spanclass="prop-type">bool</span> || If `true`, the menu is visible. |
45
45
| <spanclass="prop-name">PopoverClasses</span> | <spanclass="prop-type">object</span> ||`classes` prop applied to the [`Popover`](/api/popover/) element. |
46
46
| <spanclass="prop-name">transitionDuration</span> | <spanclass="prop-type">'auto'<br>| number<br>| { appear?: number, enter?: number, exit?: number }</span> | <spanclass="prop-default">'auto'</span> | The length of the transition in `ms`, or 'auto' |
47
-
| <spanclass="prop-name">TransitionProps</span> | <spanclass="prop-type">object</span> | <spanclass="prop-default">{}</span> | Props applied to the [`Transition`](http://reactcommunity.org/react-transition-group/transition#Transition-props) element. |
47
+
| <spanclass="prop-name">TransitionProps</span> | <spanclass="prop-type">object</span> | <spanclass="prop-default">{}</span> | Props applied to the transition element. By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition) component. |
48
48
| <spanclass="prop-name">variant</span> | <spanclass="prop-type">'menu'<br>| 'selectedMenu'</span> | <spanclass="prop-default">'selectedMenu'</span> | The variant to use. Use `menu` to prevent selected items from impacting the initial focus and the vertical alignment relative to the anchor element. |
0 commit comments