---
title: NSButton.ButtonType.momentaryLight
framework: appkit
role: symbol
role_heading: Case
path: appkit/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.

## Declaration

```swift
case momentaryLight
```

## Discussion

Discussion When the value of isHighlighted is 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; it always displays its normal image or title. This option corresponds to the Momentary Light type in Interface Builder’s Attributes inspector.

## See Also

### Configuring Button Behavior

- [NSButton.ButtonType.momentaryPushIn](appkit/nsbutton/buttontype/momentarypushin.md)
- [NSButton.ButtonType.momentaryChange](appkit/nsbutton/buttontype/momentarychange.md)
- [NSButton.ButtonType.pushOnPushOff](appkit/nsbutton/buttontype/pushonpushoff.md)
- [NSButton.ButtonType.onOff](appkit/nsbutton/buttontype/onoff.md)
- [NSButton.ButtonType.toggle](appkit/nsbutton/buttontype/toggle.md)
- [NSButton.ButtonType.switch](appkit/nsbutton/buttontype/switch.md)
- [NSButton.ButtonType.radio](appkit/nsbutton/buttontype/radio.md)
- [NSButton.ButtonType.accelerator](appkit/nsbutton/buttontype/accelerator.md)
- [NSButton.ButtonType.multiLevelAccelerator](appkit/nsbutton/buttontype/multilevelaccelerator.md)
