---
title: menuItems
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/wkwebextension/action/menuitems
---

# menuItems

The menu items provided by the extension for this action.

## Declaration

```swift
var menuItems: [UIMenuElement] { get }
```

```swift
var menuItems: [NSMenuItem] { get }
```

## Discussion

Discussion Provides menu items supplied by the extension, allowing the user to perform extension-defined actions. The app is responsible for displaying these menu items, typically in a context menu or a long-press menu on the action in action sheets or toolbars. note: The properties of the menu items, including the items themselves, can change dynamically. Therefore, the app should fetch the menu items on demand immediately before showing them, to ensure that the most current and relevant items are presented.
