Skip to content

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 with setCta for a destructive primary action.

Signature:

setDestructive(): this

Returns: this

Since: 1.13.0