# davidtheclark/react-aria-modal

A fully accessible React modal built according WAI-ARIA Authoring Practices

Repository: https://github.com/davidtheclark/react-aria-modal
Canonical: https://ross.abutalabs.com/products/react-aria-modal
Homepage: http://davidtheclark.github.io/react-aria-modal/demo/
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2023-10-30T15:43:34+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4034, "days_push": 1038, "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 1036, forks 94 (observed 2026-08-28T04:03:19.267793+00:00)

## What it is
A fully accessible and flexible React modal component built according to WAI-ARIA Authoring Practices. It provides an unstyled container that handles focus trapping, Escape-to-close, scroll freezing, focus restoration, and proper ARIA dialog semantics while leaving all styling to the developer.

## Use cases
- build an accessible modal dialog in React
- trap keyboard focus inside a modal
- make a dialog screen-reader friendly with ARIA roles
- freeze background scrolling when a modal opens
- return focus to the trigger element after a modal closes
- render a modal into document.body instead of source order

## When to choose
- you need WAI-ARIA-compliant modal accessibility out of the box
- you want full control over modal styling with minimal default styles
- you need focus trapping, Escape handling, and focus restoration handled for you

## When to avoid
- you want a pre-styled, ready-made modal with polished visuals
- you need a framework other than React
- you need actively maintained software - the project is seeking co-maintainers

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, accessibility, frontend-framework
- domain: web-development, frontend, accessibility
- platform: browser
- tags: react, modal, dialog, wai-aria, focus-trap, unstyled-components, nodejs, javascript

## Member repositories
- davidtheclark/react-aria-modal (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:19.267793+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-30T07:04:38.951278+00:00, confidence not recorded.
  - readme: https://github.com/davidtheclark/react-aria-modal (fetched 2026-08-28T04:03:19.267793+00:00, sha 7d720c61778e)
  - homepage: http://davidtheclark.github.io/react-aria-modal/demo/ (fetched 2026-08-29T13:05:20.382936+00:00, sha 8f7dde4975eb)
  - registry_npm: https://registry.npmjs.org/react-aria-modal (fetched 2026-08-29T13:05:20.385726+00:00, sha 87f1921be242)
- Data as of 2026-08-30T08:39:29.467469+00:00.
