---
title: ContextMenuListBox
description: ContextMenuListBox
element: vaadin-context-menu-list-box
---

## Description

`<vaadin-context-menu-list-box>` is a Web Component for wrapping `<vaadin-context-menu>` items.

```html
<vaadin-context-menu>
  <vaadin-context-menu-list-box slot="overlay">
    <vaadin-context-menu-item>Edit</vaadin-context-menu-item>
    <vaadin-context-menu-item>Delete</vaadin-context-menu-item>
  </vaadin-context-menu-list-box>
</vaadin-context-menu>
```

### Styling

The following shadow DOM parts are available for styling:

Part name         | Description
------------------|------------------------
`items`           | The items container

See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.

## Properties

### disabled

**Type:** `boolean`

If true, the user cannot interact with this element.
When the element is disabled, the selected item is
not updated when `selected` property is changed.

### items

**Type:** `Element[] | undefined`

A read-only list of items from which a selection can be made.
It is populated from the elements passed to the light DOM,
and updated dynamically when adding or removing items.

### orientation

**Type:** `"horizontal" | "vertical"`

Define how items are disposed in the dom.
Possible values are: `horizontal|vertical`.
It also changes navigation keys from left/right to up/down.

### selected

**Type:** `number | null | undefined`

The index of the item selected in the items array.
Note: Not updated when used in `multiple` selection mode.

