--- layout: docs title: MenuItem edit_url: "https://github.com/nylas/N1/blob/master/src/components/menu.cjsx" ---

Summary

MenuItem components can be provided to the Menu by the itemContent function. MenuItem's props allow you to display dividers as well as standard items.

Class Properties

propTypes

React props supported by MenuItem:

divider Optional

Pass a Boolean to render the menu item as a section divider.

key Optional

Pass a String to be the React key to optimize rendering lists of items.

selected Optional

Pass a Boolean to specify whether the item is selected.

checked Optional

Pass a Boolean to specify whether the item is checked.