Using DefaultButton currently. This remains selected when clicked, which property can be used to revoke selection once clicked.
Alternatively, is there any styling that needs to be done for selection?
Using DefaultButton currently. This remains selected when clicked, which property can be used to revoke selection once clicked.
Alternatively, is there any styling that needs to be done for selection?
You can use DefaultButton
checkedproperty for that scenario and control it with onClick event:Use
stylesproperty to modify button styles when button state is checked: rootChecked, rootCheckedHovered etc.Codepen example.