# @jneander/focus-dom

> Focus management for the DOM

Latest version **2.0.0** (published 2023-02-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @jneander/focus-dom
pnpm add @jneander/focus-dom
yarn add @jneander/focus-dom
bun add @jneander/focus-dom
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2023-02-18 |
| First published | 2019-09-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 44.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jeremy Neander |
| Maintainers | jneander |
| Keywords | a11y, accessibility, dom, focus |

## Links

- npm: https://www.npmjs.com/package/@jneander/focus-dom
- Repository: https://github.com/jneander/focus-dom
- Homepage: https://github.com/jneander/focus-dom#readme
- Issues: https://github.com/jneander/focus-dom/issues
- npm.io page: https://npm.io/package/@jneander/focus-dom

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2023-02-18
- 1.0.1 — 2021-10-05
- 1.0.0 — 2019-09-30

## README

# @jneander/focus-dom

Focus management for the DOM

## Next Steps

- Add examples of borrowing from outside Focus.

### Questions

- How to ensure everything works correctly while window is in background?
- What might need to happen when the element hierarchy rearranges?

### Unknown Behaviors to Consider

- automatic reconciliation
  - might depend on more fine-grained fallback rules
    - i.e. removed borrowers release to lenders instead of fallback
- observability
  - onFocus, onBlur for the FocusRegion?
    - alternately, at the root Focus container
- iframes in focus
  - focus fallback out of an iframe
  - focus falling into an iframe

---
_Source: https://npm.io/package/@jneander/focus-dom · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
