--- title: ContextMenuProps description: "Learn how to build custom functionality when working with the React Layout by Kendo UI with the help of the ContextMenuProps." api_reference: true type: inner_api slug: api_layout_contextmenuprops --- # ContextMenuProps The props of the [KendoReact ContextMenu component](https://www.telerik.com/kendo-react-ui/components/layout/contextmenu).
Name Type Default Description
#### animate? boolean | PopupAnimation true Controls the Popup animation. ```jsx ```
#### children? React.ReactNode Sets the Menu items declaratively. ```jsx ```
#### className? string Adds a custom className to the Menu top element. ```jsx ```
#### customCloseItemIds? string[] Sets the ids of the Menu items that will not be closed on mouse-leave. The ids are hierarchical and zero-based. The first root item has a `0` id. If the first root item has children, the first child item acquires a `0_0` id and the second acquires a `0_1` id. ```jsx ```
#### dir? string Sets the direction of the Menu. ```jsx ```
#### id? string Sets the ID of the Menu. ```jsx ```
#### itemRender? any A React functional or class component which is used for rendering the innermost part of the Menu item ([see example](https://www.telerik.com/kendo-react-ui/components/layout/menu/items/rendering#toc-items)). By default, the innermost item part includes only the text for the item. ```jsx const CustomItem = (props) =>
{props.text}
; ```
#### items? [MenuItemModel]({% slug api_layout_menuitemmodel %})[] Sets the Menu items. ```jsx const items = [{ text: 'Item 1' }, { text: 'Item 2' }]; ```
#### linkRender? any A React functional or class component which is used for rendering the link of the item ([see example](https://www.telerik.com/kendo-react-ui/components/layout/menu/items/rendering#toc-links)). The item link is a part of the visual representation of the item which, by default, includes an arrow, icon, and text. ```jsx const CustomLink = (props) => {props.text}; ```
#### offset Offset Specifies the absolute position of the ContextMenu. The Popover opens next to that point. Example: ```jsx ```
#### onClose (event: [MenuCloseEvent]({% slug api_layout_menucloseevent %})) => void Triggers when the ContextMenu needs to hide. Example: ```jsx setShow(false)} /> ```
#### onSelect? (event: [MenuSelectEvent]({% slug api_layout_menuselectevent %})) => void Fires when a Menu item is selected. ```jsx console.log(event.item.text)} /> ```
#### show boolean Controls the Popup visibility of the ContextMenu. Example: ```jsx ```
#### style? React.CSSProperties Sets additional CSS styles to the Menu. ```jsx ```
#### vertical? boolean false Specifies whether the Menu will be vertical ([see example](https://www.telerik.com/kendo-react-ui/components/layout/menu/vertical)). ```jsx ```
#### webMcp? boolean | WebMcpProps Enables Web MCP tool registration for this component. Requires a parent `WebMcpProvider` from `@progress/kendo-react-webmcp`.