Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

focus-trap-react

Keeps keyboard focus inside a React component (modals, dialogs).

UI components and iconsNPM

GitHubWebsite

1. License

License from npm.

github.com/focus-trap/focus-trap-react

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What focus-trap-react does

Keeps keyboard focus inside a React component (modals, dialogs).

focus-trap-react popularity

40 / 100
Gid Score, #3106 overall
1.9M
downloads a week, npm
786
GitHub stars
1
agent projects use it
focus-trap-react: downloads per weeknpm, focus-trap-react 1,862,458
focus-trap-react: GitHub starsfocus-trap/focus-trap-react 786

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How focus-trap-react is used

  • focus-trap-react joined the catalog on its public numbers (1,862,458 downloads a week on npm and 786 GitHub stars), not on our project count: it is a dependency in 9 public GitHub projects of our scan, 1 of them set up for AI coding agents.
  • Projects that use it most often also use clsx (100.0%), Prettier (100.0%), Tailwind Merge (100.0%).

Often used with

In 100.0% of its projects
In 100.0% of its projects
In 100.0% of its projects
In 88.9% of its projects
In 88.9% of its projects
In 88.9% of its projects
In 77.8% of its projects
In 77.8% of its projects

More about focus-trap-react

More in UI components and icons

Alternatives

focus-trap-react This page

MITGid 401.9M/wk

Compare focus-trap-react with another tool

Get started

Install it.

npm install focus-trap-react

No step-by-step start for focus-trap-react yet: we have not written its hand-checked card.