react-modal

Standardize React modal dialogs with a reusable Radix UI Dialog wrapper.

1|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/landim32/awesome-ai-skills --skill react-modal-landim32
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-modal
Source: https://github.com/landim32/awesome-ai-skills/tree/main/skills/react-modal
Command: npx skills add https://github.com/landim32/awesome-ai-skills --skill react-modal-landim32

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Standardizes and centralizes modal dialogs across the frontend by enforcing the use of a single reusable Modal wrapper, ensuring accessibility, consistent styling, and predictable behavior.

Core Features & Use Cases

  • Enforces use of the Modal component at src/components/ui/Modal.tsx for all dialogs to maintain accessibility and consistent UX.
  • Provides ConfirmModal for safe confirmations, replacing window.confirm with a styled, accessible prompt.
  • Supports composing modals with ModalContent, ModalHeader, ModalFooter, and related subcomponents to build forms, details, or previews.

Quick Start

Create a new modal by using the project's Modal component and wrap your content with ModalContent.

Frequently Asked Questions about react-modal

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

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

Build accessible modal dialogs in React using a standardized Modal wrapper built on Radix UI Dialog. This ensures consistent styling, predictable behavior, and accessibility across all interactive UI scenarios like forms, confirmations, and previews.

What's the best way to standardize reusable React modals across pages?

Standardize reusable React modals by enforcing a single Modal wrapper component at src/components/ui/Modal.tsx. This centralizes dialog behavior and styling, preventing direct use of underlying UI primitives and ensuring a consistent UX across your application.

Can I replace window.confirm with a styled React component?

Replace window.confirm with a styled React component by using ConfirmModal. It provides a safe, accessible confirmation prompt that integrates seamlessly with your application's UI standards and replaces default browser dialogs.

Does this approach support composing custom modal forms and detail views?

Composing custom modal forms and detail views is fully supported by using subcomponents like ModalContent, ModalHeader, and ModalFooter. This allows you to build complex interactive UI scenarios within the standardized wrapper.

Why should I avoid using Radix UI primitives directly for modals?

Avoid using Radix UI primitives directly for modals to prevent inconsistent styling and fragmented accessibility implementations. The enforced wrapper ensures all dialogs meet centralized UI standards and predictable behavior.