Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Add optional container queries support #35

Open
kizu opened this issue Mar 27, 2018 · 0 comments
Open

Add optional container queries support #35

kizu opened this issue Mar 27, 2018 · 0 comments

Comments

@kizu
Copy link
Member

kizu commented Mar 27, 2018

If I could find a nice way to have this as an optional peer dependency (codependency?), we could utilize https://github.com/d6u/react-container-query for container queries implementation right on bemto-components.

Imaginary ideal syntax:

const bemto = require('bemto-components');
const MyElement = styled(bemto({ _small: { containerQuery: { maxWidth: 499 } } }))`
  padding: 1em;
  overflow: hidden;
  resize: horizontal;

  background: lime;

  &_small {
    background: pink;
  }
`;
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant