ConfirmDialog

Asking before an act that can't be taken back: a small dialog with the question, what happens and what stays, the act — red when it destroys — and a way out. It opens over Settings as well as the page.

Removing someone from the team

API

PropTypeDefaultDescription
titlestring—The question, naming who or what.
descriptionReactNode—What happens, and what stays.
confirmLabel / cancelLabelstring—The act, named as on the button that asked; the way out.
destructivebooleanfalseThe act destroys: its button is red.
busybooleanfalseThe act is on its way: the buttons wait.

Guidelines

  • Only for what can't be undone. A change with Undo lands at once, with no asking.
  • The confirm button says the act again (“Remove”, not “OK”); the way out keeps things as they are (“Keep”).