dialogs

Standardize popup modal dialog creation across React components.

2|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/Clay-Ferguson/mkbrowser --skill dialogs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dialogs
Source: https://github.com/Clay-Ferguson/mkbrowser/tree/main/.claude/skills/dialogs
Command: npx skills add https://github.com/Clay-Ferguson/mkbrowser --skill dialogs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pattern for making popup modal dialogs.

Core Features & Use Cases

  • Reusable ConfirmDialog pattern that can be extended to alerts and prompts.
  • Clear entry point at SKILL.md with frontmatter containing name and description.
  • Simple integration into existing React components to enforce consistent UX.

Quick Start

Create a reusable ConfirmDialog component by extracting the common dialog pattern from ConfirmDialog.tsx and applying it to new dialog variants.

Frequently Asked Questions about dialogs

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

FAQPage Schema
How do I create reusable modal dialogs in React?

You create reusable modal dialogs in React by extracting the common popup pattern into a ConfirmDialog component that can be extended to alerts and custom prompts. This enforces consistent UX across your application components.

What is the best way to standardize popup dialogs across a React application?

Standardizing popup dialogs involves defining a reusable UI pattern with a clear entry point containing frontmatter, scripts, and references. This approach ensures consistent confirmations and alerts across single-page or multi-page React applications.

How do I build a confirmation dialog component without external dependencies?

Building a confirmation dialog component without dependencies involves extracting the common modal pattern from a ConfirmDialog implementation and applying it to new dialog variants like alerts and prompts for your React frontend.

Can I use this dialog pattern for both single-page and multi-page React apps?

Yes, this dialog pattern applies to frontend teams building consistent modal dialogs across both single-page and multi-page React applications. You simply integrate the reusable component into your existing React architecture.

What's the difference between a reusable dialog pattern and custom popup components?

A reusable dialog pattern provides a standardized structure with frontmatter, scripts, and assets directories, whereas custom popup components are built ad hoc. The pattern approach enforces consistent UX and simplifies maintenance across your React application.

How do I extend a confirmation dialog to support alerts and custom prompts?

You extend a confirmation dialog to alerts and custom prompts by applying the extracted common dialog pattern to new variants. This involves integrating the base ConfirmDialog structure into your existing React components to enforce consistent UX.