cpn-basic-pop-confirm

Generates compliant PopConfirm usage examples for React-like codebases.

1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/UCloud-FE/udesign-cli --skill cpn-basic-pop-confirm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cpn-basic-pop-confirm
Source: https://github.com/UCloud-FE/udesign-cli/tree/main/skills/cpn-basic-pop-confirm
Command: npx skills add https://github.com/UCloud-FE/udesign-cli --skill cpn-basic-pop-confirm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AI often misuses design components or fails to follow standard interaction patterns when employing PopConfirm. This skill clarifies proper deployment and expected behavior to ensure consistent UX.

Core Features & Use Cases

  • Correct Component Usage: Demonstrates how to integrate PopConfirm with Button and other UI controls.
  • Behavior & Callbacks: Explains onConfirm/onCancel semantics and how to manage user interactions.
  • Real-world Scenarios: Applies to destructive actions, critical confirmations, and inline actions in forms.

Quick Start

Provide your UI code context and I will generate a compliant PopConfirm usage example.

Frequently Asked Questions about cpn-basic-pop-confirm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement a PopConfirm for destructive actions in React?

To implement a PopConfirm for destructive actions in React, integrate the component with a Button and define the onConfirm callback to execute the deletion logic. This ensures a critical confirmation step protects against accidental data loss.

What is the correct way to handle PopConfirm onConfirm and onCancel callbacks?

Handling PopConfirm callbacks correctly involves binding asynchronous functions to onConfirm for executing the primary action, and binding onCancel to manage state cleanup or abort the user interaction safely.

Can I use a PopConfirm together with a tooltip in my UI interactions?

Yes, you can use a PopConfirm with tooltip integration to provide contextual help before users trigger an action. This combination clarifies complex UI controls while maintaining standard interaction patterns.

How do I prevent AI from misusing PopConfirm when generating UI code?

To prevent AI from misusing PopConfirm, provide your UI code context to a guideline skill that enforces correct component usage. This clarifies proper deployment and expected behavior for consistent UX.

When should I use a PopConfirm instead of a standard Button in React forms?

You should use a PopConfirm instead of a standard Button for inline actions in forms that require critical confirmations. It adds a necessary verification layer for destructive operations before executing the callback.