Skip to content
JS
Package

focus-within

Style elements when they are focused or contain a focused element

v3.0.2, 23 Nov 2018CC0-1.0ESM + CommonJSTypes: NoneAccessibilityCSS-in-JS and styling
$ npm install focus-within

Key numbers

As of 25 Sept 2026
Weekly downloads
4.3k
+50% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
7 years ago
v3.0.2
GitHub stars
71
3 forks
Open issues / PRs
3 / 1
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
02k4k6k8kSept 2025Mar 2026Sept 2026High 7k (21 Apr 2026)Low 1.6k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

4,268 downloads last week, 20,644 in the last month. The 12-month change of +50% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
3.0.2, 23 Nov 20187 years ago
First published
-
Last push to GitHub
8 Feb 20192,785 days before the snapshot
Repository archived
No
Open issues
3
Open pull requests
1
Commits, last 52 weeks
0
Dependents on npm
12

Major versions

-

Recent releases

-

Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=6.0.0
Runtimes
-
Unpacked size (npm)
31 kB
Dependencies (1)
postcss
npm install focus-within
  • jsDelivrhttps://cdn.jsdelivr.net/npm/focus-within@3.0.2/
  • unpkghttps://unpkg.com/focus-within@3.0.2/
  • esm.shhttps://esm.sh/focus-within@3.0.2
PackageWeekly downloadsGzipLast releaseModuleComparison
postcss-focus13.4k-3 years ago--
@ebay/skin24.6k-6 days agoESM + CommonJS-
eslint-plugin-styled-components-a11y84.4k-1 year agoCommonJS-
@material/touch-target449.4k-4 years ago--
apca-w349.8k-4 years agoESM only-
@ariakit/store420.4k-10 days agoESM only-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 4268 < 10000.