---
title: "sectionHeader(title:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nsmenuitem/sectionheader(title:)"
---

# sectionHeader(title:)

Returns a menu item representing a section header for a logical grouping of menu commands.

## Declaration

```swift
static func sectionHeader(title: String) -> NSMenuItem
```

## Parameters

- `title`: The title string to display on the section header.

## Discussion

Discussion Use section headers to provide context to a group of menu items. Items created using this method are non-interactive and don’t perform actions.

## See Also

### Type Methods

- [sectionHeader(withTitle:)](appkit/nsmenuitem/sectionheader(withtitle:).md)
