Agentic Design System
v3.5.0

Components · Feedback · Pop Confirm

Back to Pop Confirm types

Pop Confirm

Owner: Design System Team · Version: v3.5.0

Use to ask a short "are you sure?" question right next to the trigger that caused it, with Confirm/Cancel buttons inline in the popover - one Pop Confirm component, controlled by properties, not a one-off floating panel built from scratch each time.

Properties

Question text, Confirm label and Cancel label are properties of the same component, not separate confirmations built by hand - change them below to check every placement and state in the Live Preview.

Live Preview

All 4 placements compared side by side, each in 3 states - Default (neutral Confirm button), Destructive (Confirm button styled in the danger color) and With icon (a warning icon before the question). One matrix is rendered at the chosen Question text, Confirm label and Cancel label setting.

When to use

Any lightweight "are you sure?" moment anchored to the element that triggered it, where a full Modal would be overkill.

Delete/remove confirmation Discard unsaved changes Leave page confirmation Bulk action confirmation Irreversible toggle confirmation

Component Guide

Overview

Pop Confirm asks a short "are you sure?" question right next to the trigger that caused it, with Confirm/Cancel buttons inline in the popover - a lightweight alternative to a full Modal for confirmations that don't need to fully block the page.

When to Use

  • A delete or remove confirmation on a single row or item - anchored right at the action that triggered it.
  • Discarding unsaved changes or leaving a page - a quick check before a potentially costly action.
  • A bulk action or an irreversible toggle confirmation - still simple enough not to need a full dialog.

When Not to Use

  • A decision with real complexity or multiple fields - use Modal - Pop Confirm is for a single yes/no question, not a form.
  • An action with severe, hard-to-reverse consequences at scale - consider a full Modal with more explicit warning copy for genuinely high-stakes confirmations.
  • Something that isn't actually a confirmation - use Popover for general contextual content that isn't a yes/no decision.

Best Practices

  • Keep the question and both button labels short and specific ("Delete this file?" / "Delete" / "Cancel").
  • Anchor it directly to the triggering control so the connection between action and confirmation is obvious.
  • Close it on an outside click or Escape without treating that as a confirmation either way.

Do and Don't

Do

Delete this file?

A single yes-or-no question, anchored to the control that triggered it, with buttons that name the outcome.

Don't

Delete this file? Also remove it from shared folders, revoke links, and notify collaborators?

Several decisions bundled into one question cannot be answered with one button. Once it needs this much explaining, use a Modal.

Accessibility

  • Pop Confirm exists to gate a destructive or otherwise irreversible action, so its popover content carries role="alertdialog" rather than a plain popover/tooltip role - that's what gets its appearance and question announced together as a single interruption, instead of relying on the user to notice it visually.
  • Focus moves into the alertdialog (typically onto the Cancel button, the safer default) when it opens, and returns to the exact triggering element when it closes, whether closed by Confirm, Cancel, Escape, or an outside click.
  • The Confirm and Cancel buttons are distinguishable by more than color, especially when Confirm is destructive-styled.
  • Escape closes it exactly like a Cancel, never like a silent Confirm.

Related Components

Modal, Popover, Tooltip.