Skip to content
JS
Package

@a11y/focus-trap

A lightweight web component that traps focus within a DOM node

v1.0.5, 9 Nov 2019MITESM + CommonJSTypes: BundledAccessibilityDOM and browser utilities
$ npm install @a11y/focus-trap

Key numbers

As of 25 Sept 2026
Weekly downloads
16.5k
- over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
6 years ago
v1.0.5
GitHub stars
58
10 forks
Open issues / PRs
2 / 16
Contributors
-
Commits, last 52 weeks
0

No weekly download data in the snapshot.

16,493 downloads last week, 65,640 in the last month. No 52-week series has been fetched yet.

Releases, last 12 months
-
Latest version
1.0.5, 9 Nov 20196 years ago
First published
-
Last push to GitHub
30 Sept 20221,455 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
16
Commits, last 52 weeks
0
Dependents on npm
37

Major versions

-

Recent releases

-

Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
26 kB
Dependencies (0)
None
npm install @a11y/focus-trap
  • jsDelivrhttps://cdn.jsdelivr.net/npm/@a11y/focus-trap@1.0.5/
  • unpkghttps://unpkg.com/@a11y/focus-trap@1.0.5/
  • esm.shhttps://esm.sh/@a11y/focus-trap@1.0.5
PackageWeekly downloadsGzipLast releaseModuleComparison
focus-layers12.5k-5 years agoESM + CommonJS-
focus-trap4.6m-3 months agoESM + CommonJS-
react-focus-on162.8k-9 months agoESM + CommonJS-
tinykeys232.1k-4 months agoESM + CommonJS-
selection-hook8.5k-24 days agoCommonJS-
Sources: npm registry, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.