npmjs.org : use-container-queries
A react hook that tracks a containers size and the range that width falls into within a list of breakpoints. This allows better responsive styling, where the user can style DOM elements based on their container, rather than the browser viewport.
Registry
-
Source
- JSON
purl: pkg:npm/use-container-queries
Keywords:
react
, reactjs
, react-hooks
, hooks
, hook
, resize-observer
, element-resize
, observe-element
, react-resize-observer
, container-query
, container-queries
License: MIT
Latest release: about 4 years ago
First release: about 4 years ago
Dependent packages: 1
Downloads: 2,399 last month
Stars: 8 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 1 day ago