focus-trap-react
Keeps keyboard focus inside a React component (modals, dialogs).
3. Used by agents' projects
Dependency in 1 public GitHub projects set up for AI coding agents that we scanned (0.0%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
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
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
More about focus-trap-react
More in UI components and icons
Alternatives
focus-trap-react This page
Get started
Install it.
npm install focus-trap-reactNo step-by-step start for focus-trap-react yet: we have not written its hand-checked card.