reactjs/react-modal

Accessible modal dialog component for React

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 35 minutes ago
Added to GitGenius on September 8th, 2026
Created on September 21st, 2014
Open Issues & Pull Requests: 212 (+0)
GitHub issues: Enabled
Number of forks: 807
Total Stargazers: 7,408 (+0)
Total Subscribers: 60 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 7.3 hours
Mean response time: 48.1 days
90th percentile: 203.7 days
Tracked items: 30

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 4% of issues opened in the past year have been closed. Three people close 65% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 16
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 1,385 days
Stale 30+ days: 16
Stale 90+ days: 14

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (4)
  • discussion (2)
  • easy (2)
  • enhancement (2)
  • react (2)
  • accessibility (1)
  • browser api (1)
  • events (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

react-modal is an accessible modal dialog component for React.

The tool solves the problem of implementing modals that meet accessibility standards in React applications. It provides a reusable component that handles the common patterns needed for modal dialogs, including focus management, keyboard interaction, and ARIA attributes. The component can be styled with custom CSS classes or inline styles and supports configuration options like controlling whether clicking the overlay closes the modal and handling close requests through callbacks.

Developers should choose this tool when building React applications that need accessible modal dialogs without building from scratch. It suits projects of any size that require standard modal behavior with proper accessibility support. The tool can be installed via npm or yarn for bundled applications, or loaded directly via CDN script tag for React applications built with CDN links. The component offers flexibility through its API, allowing developers to customize styling, control overlay click behavior, and manage modal state through callback functions.

The project maintains active engagement with its codebase through regular updates and bug fixes. Documentation is comprehensive, with a reference book covering the full API and multiple working examples available both in the repository and on CodePen demonstrating different configuration approaches. The examples directory provides runnable demonstrations that can be started locally, supporting developers who want to understand the tool's capabilities before integration.