open-vault/ui/lib/core/stories/confirm-action.md
Alexander Scheel 1996336481
Update repository links to point to main (#14112)
* Update repository links to point to main

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Fix broken link in relatedtools.mdx

Co-authored-by: Steven Clark <steven.clark@hashicorp.com>

Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
2022-02-17 14:30:56 -05:00

1.5 KiB

ConfirmAction

ConfirmAction is a button followed by a pop up confirmation message and button used to prevent users from performing actions they do not intend to.

Properties

Param Type Default Description
buttonClasses String The CSS classes to add to the trigger button.
confirmTitle String Delete this? The title to display upon confirming.
confirmMessage String You will not be able to recover it later. The message to display upon confirming.
confirmButtonText String Delete The confirm button text.
cancelButtonText String Cancel The cancel button text.
onConfirmAction Func The action to take upon confirming.

Example

<ConfirmAction
  @buttonClasses="button is-primary"
  @onConfirmAction={{ () => { console.log('Action!') } }}
  Delete
</ConfirmAction>

See