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
checked
property for that scenario and control it with onClick event:Use
styles
property to modify button styles when button state is checked: rootChecked, rootCheckedHovered etc.Codepen example.