A multi-purpose interactable element inside a menu. The behaviour and style of the item depends on the props set.
Default: By default, the menu item only contains a label and optional hint/badge text that is displayed on the right-hand side of the item.
Navigation: If the
menuprop is set, the item behaves as a navigational control and displays arrows to indicate whether clicking the control will navigate forwards/backwards.
Radio: If the
checkedprop is set, the item behaves as a radio button and displays a checkmark icon to indicate whether it is checked or not.
|Whether the menu is open/visible.|
|Reference to the controller DOM element that is responsible for opening/closing this menu.|
|The direction the menu should slide in from.|
|Removes focus from the menu.|
|Calculates the height of the settings menu based on its children.|
|Focuses the menu.|
|Returns the currently focused menu item.|
|Sets the currently focused menu item.|
|Emitted when the currently focused menu item changes.|
|Emitted when the active submenu changes.|
|Emitted when the menu loses focus.|
|Emitted when the menu has closed/is not active.|
|Emitted when the menu is focused.|
|Emitted when the height of the menu changes.|
|Emitted when the menu is open/active.|
|Used to pass in the body of the menu which usually contains menu items, radio groups and/or submenus.|
|The background color the menu.|
|The text color within the menu.|
|The font size of text within the menu.|
|The font weight of text within the menu.|
|The CSS transitions applied to the menu.|
|The position in the UI z-axis stack inside the player.|