Skip to content
JS
Package

react-focus-trap

Traps focus for accessible dropdowns and modal content.

v2.7.2, 23 May 2022MITCommonJSTypes: NoneAccessibilityReact
$ npm install react-focus-trap

Key numbers

As of 25 Sept 2026
Weekly downloads
3.1k
-54% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
4 years ago
v2.7.2
GitHub stars
81
8 forks
Open issues / PRs
9 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
05k10k15kSept 2025Mar 2026Sept 2026High 14.6k (3 Mar 2026)Low 2.8k (1 Sept 2026)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

3,121 downloads last week, 14,808 in the last month. The 12-month change of -54% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
2.7.2, 23 May 20224 years ago
First published
-
Last push to GitHub
23 May 20221,585 days before the snapshot
Repository archived
No
Open issues
9
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
4

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
14 kB
Dependencies (0)
None
npm install react-focus-trap
  • jsDelivrhttps://cdn.jsdelivr.net/npm/react-focus-trap@2.7.2/
  • unpkghttps://unpkg.com/react-focus-trap@2.7.2/
  • esm.shhttps://esm.sh/react-focus-trap@2.7.2
PackageWeekly downloadsGzipLast releaseModuleComparison
@ariakit/react917.2k-10 days agoESM + CommonJS-
reakit131.3k-4 years agoESM + CommonJS-
react-accessible-treeview115.2k-1 year agoESM + CommonJS-
focus-layers12.5k-5 years agoESM + CommonJS-
@chakra-ui/live-region286.3k-3 years agoESM + CommonJS-
react-a11y-dialog6.6k-1 year agoESM + CommonJS-
@chakra-ui/skip-nav136.2k-3 years agoESM + CommonJS-
@chakra-ui/accordion286.4k-3 years agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 3121 < 10000.