**Totally based on [d6u/react-container-query](https://github.com/d6u/react-container-query).**
npm install vue-container-queryTotally based on d6u/react-container-query.
The following documentation is also originated from d6u/react-container-query.
Your suggested to pay a visit to the repo react-container-query.
``sh`
npm i -D vue-container-query
`html
v-model="params"
@change="handleChange"
>
{{ params }}
`
#### properties
- props.children
There should only be one, and exactly one child component.
- props.query
"query" is key-value pairs where keys are the class names that will be applied to container element when all constraints are met. The values are the constraints.
- props.initialSize (optional)
initialSize is an object with optional width or height property. Because the limitation on how size is computed based on underlying element, in the initial rendering pass, we don't have the size info (because element must be in the DOM have a valid size). At this time initialSize will be used as the size of the element.
`html
{{ containerQuery }}
``