Open source alternatives to react-container-query
200 open source apps like react-container-query, closest match first.
Top picks
- R

react-resizable-box
Launchre-resizable, which is listed here as react-resizable-box, is a resizable component for React. You wrap content in it and the user can drag its edges or corners to change its width and height. The component accepts a default size, or a cont
Open source
- R

react-resizable-and-movable
Launchreact-resizable-and-movable is a React component for a box that can be both resized and dragged. You wrap your content in the component and the user can move it around and change its width and height with the mouse. The README covers instal
Open source
- E

@egjs/react-infinitegrid
Launch@egjs/react-infinitegrid is the React wrapper for InfiniteGrid, a JavaScript module that arranges cards and other elements of different sizes into an infinite grid. The core module keeps the number of DOM nodes it manages low at all times,
Open source
- R

react-textfit
Launchreact-textfit is a React component that fits headlines and paragraphs into any element by sizing their text. It uses a binary search to find the right font size quickly, and the README says it works with any style setup, including line-heig
Open source
- R

react-list
LaunchReactList is a React component for infinite scrolling lists. You give it a number of items and a function that renders the item at each index, and it renders only the items that are visible while the rest of the list scrolls past. It works
Open source
- R

react-infinite
LaunchReact Infinite is a scrolling container for React that renders only the items a user can see, or is about to see. A long list that keeps every element in the DOM is inefficient, especially when it can run to tens or hundreds of thousands of
Open source
More like react-container-query
About react-container-query

react-container-query
Container Query for React Component
React Container Query is a React library for responsive components that react to the size of their container rather than the window. Its README calls it true modularity in styling responsive components. The package offers a useContainerQuery hook that takes a query and an optional initial size, and a ContainerQuery component that takes the same query and an initialSize with width and height. The hook can measure a native DOM element, such as a div or span, used as the container. If the container is a React component, the README explains that the component must forward its ref to the DOM element it renders, using React.forwardRef, because a React component itself cannot be measured. The README includes a disclaimer that the code is provided under an open source license by contributors acting in a personal capacity. Installation is covered by a package command shown in the README, and the API section documents both the hook and the component.
- Price
- Free
- Made by
- daiweilu
- Category
- UI Libraries
- Website
- github.com/react-container-query/react-container-query


































