npm package
Homefocus-trap
Focus-trap is a JavaScript library that traps focus within a specified DOM node, ensuring that users cannot navigate away from a set of focusable elements. It is particularly useful for creating accessible modals and similar components where focus management is critical. This library can be integrated into various frameworks, including React, through wrappers.
- lurq health score
- 85/100
- Confidence
- proven
- Weekly downloads
- 6,354,429
- Latest version
- 8.2.2
- Last release
- Jun 22, 2026
- License
- MIT
Should you depend on focus-trap?
lurq's verdict: low
- No known advisories
Check this from your coding agent
This page is a daily snapshot. lurq's verify tool checks focus-trap at the exact version your agent is about to install, and compat checks it against the rest of your stack. One command connects Claude Code, Cursor, VS Code and other agents:
npx lurqrun
Free to start. Quickstart
Other ui-component-library packages lurq scores
- @react-types/shared91/100 · proven
- swagger-ui-dist91/100 · proven
- @react-aria/interactions91/100 · proven
- @react-aria/ssr91/100 · proven
- @react-stately/utils91/100 · proven
Scored from public signals (npm registry, GitHub, deps.dev and advisory databases). Data as of Sep 2, 2026; this page refreshes every 24 hours. Source repository.