# reactjs/react-modal

Accessible modal dialog component for React

Repository: https://github.com/reactjs/react-modal
Canonical: https://ross.abutalabs.com/products/react-modal
Homepage: http://reactcommunity.org/react-modal
Language: JavaScript
License: MIT
License Family: permissive
Topics: react, javascript, modal
Last push: 2026-03-02T09:12:20+00:00

## Health v2 (maintenance only)
Score: 54/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 70, release rhythm 8, longevity 100
- inputs: {"age_days": 4365, "days_push": 184, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7410, forks 809 (observed 2026-08-28T04:09:59.739415+00:00)

## What it is
react-modal is an accessible modal dialog component library for React applications. It provides a customizable modal with built-in accessibility features such as focus trapping and ARIA support.

## Use cases
- show a modal dialog in a react app
- accessible popup dialog component for react
- open a confirmation dialog with focus trapping
- display overlay content on top of a react page
- customizable modal with esc key and overlay close
- build a lightbox or dialog in react

## When to choose
- you need a battle-tested, accessible modal for React
- you want a small dependency with flexible styling via overlay/content styles
- you need focus management, ESC-to-close, and app element binding out of the box

## When to avoid
- you are not using React
- you need a full UI component suite rather than just modals
- you want headless/unstyled primitives and prefer building styling yourself with something like Radix or Headless UI

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, accessibility
- domain: frontend, web-development, accessibility
- platform: browser
- tags: react, modal, dialog, react-component, web-server, nodejs

## Member repositories
- reactjs/react-modal (main) score 54

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:59.739415+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:37:51.844616+00:00, confidence not recorded.
  - readme: https://github.com/reactjs/react-modal (fetched 2026-08-28T04:09:59.739415+00:00, sha 8b38cbeda3db)
  - homepage: http://reactcommunity.org/react-modal (fetched 2026-08-29T08:33:29.166172+00:00, sha 769ae458a300)
  - registry_npm: https://registry.npmjs.org/react-modal (fetched 2026-08-29T08:33:29.175313+00:00, sha e0eb7211cb27)
- Data as of 2026-08-30T08:39:29.467469+00:00.
