---
title: button
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/menustyle/button
---

# button

A menu style that displays a button that toggles the display of the menu’s contents when pressed.

## Declaration

```swift
nonisolated static var button: ButtonMenuStyle { get }
```

## Discussion

Discussion On macOS, the button displays an arrow to indicate that it presents a menu. Pressing and then dragging into the contents activates the selected action on release.

## See Also

### Getting built-in menu styles

- [automatic](swiftui/menustyle/automatic.md)
- [borderedButton](swiftui/menustyle/borderedbutton.md)
- [borderlessButton](swiftui/menustyle/borderlessbutton.md)
