Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] Can we do container queries with this library? #321

Open
ghost opened this issue May 11, 2024 · 2 comments
Open

[question] Can we do container queries with this library? #321

ghost opened this issue May 11, 2024 · 2 comments

Comments

@ghost
Copy link

ghost commented May 11, 2024

HI, I would love to know if and how it is possible to use container queries with this library? If not, is there any good library you would recommend for that purpose? Thank you very much

@yocontra
Copy link
Owner

It doesn't currently but this seems like a feature we should add - going to put this on the roadmap if I have time to get around to it, otherwise open to PRs.

I'm not sure if they have an evented API on par with the matchMedia one - that would be the only limiting factor that would have it make sense, otherwise you would just put it in CSS and there wouldn't be a real advantage over baking it into the react library.

https://developer.mozilla.org/en-US/docs/Web/API/CSSContainerRule

@yocontra
Copy link
Owner

This library looks like it has an observe function: https://www.npmjs.com/package/container-query-toolkit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant