ButtonComponent.setDestructive method
ButtonComponent › setDestructive
Official
Style the button as destructive (e.g. for actions that delete data or are otherwise hard to undo). Compose withsetCta for a destructive primary action. Signature:
setDestructive(): thisReturns: this
Since: 1.13.0