Settings

Sidebar
Display
Profile Panel
👤

John Doe

Administrator
  • 📊 Dashboard
  • 📝 Forms
  • 📋 Tables
Commands
🚀
Go to Page
Navigate to a page
/go
🌓
Toggle Theme
Switch between light and dark mode
/theme
📐
Toggle Sidebar
Show or hide the sidebar
/sidebar
⚙️
Open Settings
Open the settings panel
/settings
Search In
📄
Pages
Search pages
:p
🧩
Components
Search component pages
:c

Popconfirm Component

Small confirmation dialogs anchored to trigger buttons - perfect for delete confirmations and quick decisions

Basic Popconfirms

Compact Variant

Are you sure you want to delete this item? This action cannot be undone.

Archive this item? It will be moved to the archive folder.

Reset all settings to default values?

Delete this item?

Remove this item?

Position Variants

Popconfirms automatically adjust position based on available space using Floating UI

Confirm this action?

Confirm this action?

Confirm this action?

Confirm this action?

Icon Variants

Different icon styles to indicate the severity of the action

This action is destructive and cannot be undone.

Please review this action carefully before proceeding.

This will update your preferences. Continue?

Table with Popconfirms

Common use case: delete confirmations in data tables

IDNameStatusActions
1John Doe Active
2Jane Smith Pending
3Bob Johnson Inactive

Delete John Doe?

Delete Jane Smith?

Delete Bob Johnson?

WebGrid Integration (Shadow DOM)

Live demo: single shared Popconfirm with @keenmate/web-grid inline toolbar — toolbar buttons live inside Shadow DOM, handled transparently since v1.5.1

Since v1.5.1, Popconfirm automatically handles triggers inside Shadow DOM (e.g. web-grid toolbar buttons). No extra code needed — just pass the trigger element from the event detail. Hover a row below and click the delete button to see it in action.

Key Points

  • Single instance — one <Popconfirm> for all rows, driven by reactive state
  • Shadow DOM — web-grid toolbar buttons live inside Shadow DOM; the triggerElement from the event detail is passed directly and positioning works automatically
  • Dynamic callback — store the delete callback in state so onconfirm calls the right handler per row
  • No extra config — the Shadow DOM proxy (v1.5.1) creates a light-DOM mirror element for Floating UI positioning

Success

Keyboard Shortcuts

No shortcuts registered.