MenuItem API

API reference docs for theMenuItemcomponent. For examples and details on the usage of this component, visit the component demo page.

Props

PropsTypeDescriptionDefault
childrenReactNodeThe content/components to appear in the fluid center_
isDisabled?booleanIndicates if the menu item is currently disabled. Used for styling and accessibility. Applies an aria-disabled attributefalse
isHighlighted?booleanIndicates if the menu item is currently highlighted. Used for styling. Applies a data-highlighted attributefalse
isSelected?booleanIndicates if the menu item is currently selected. Used for styling. Applies a data-selected attributefalse
railEnd?ReactNodeThe content/components to appear in the end rail_
railStart?ReactNodeThe content/components to appear in the start rail_
size?'standard' | 'large'The size of the menu item'standard'
verticalAlign?'bottom' | 'middle' | 'top'Determines how the rails and center are vertically aligned to each other. A typography or heading can be provided to center align icons and with text that may wrap'middle'