<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSButton/ButtonType/momentaryLight",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSButtonType@NSButtonTypeMomentaryLight"
  },
  "title" : "NSButton.ButtonType.momentaryLight"
}
-->

# NSButton.ButtonType.momentaryLight

A button that displays a highlight when the user clicks it and returns to its normal state when the user releases it.

```
case momentaryLight
```

## Discussion

When the value of [`isHighlighted`](/documentation/AppKit/NSControl/isHighlighted) is <doc://com.apple.documentation/documentation/Swift/true>, the button provides a visual indication of the highlight in its drawing. It might accomplish this indication by modifying the appearance of its content, its bezel, or both.

This type of button is best for triggering actions because it doesn’t show its [`state`](/documentation/AppKit/NSButton/state); it always displays its normal image or title.

This option corresponds to the Momentary Light type in Interface Builder’s Attributes inspector.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)