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

Add support for css modules #76

Open
arjanvillon opened this issue Jun 15, 2021 · 3 comments
Open

Add support for css modules #76

arjanvillon opened this issue Jun 15, 2021 · 3 comments

Comments

@arjanvillon
Copy link

This is a great package! Great work guys. I just want to suggest a new feature to support css modules when adding a className or columnClassName.

@mienaikoe
Copy link

mienaikoe commented Jul 11, 2021

I'm using css modules with react-masonry-css, albeit in a basic way. What is missing that prevents you from using css modules?

@fondberg
Copy link

fondberg commented Sep 6, 2021

Can you provide an example?

@C-Garza
Copy link

C-Garza commented Dec 20, 2021

Could you not do something like this?:

      <Masonry 
        breakpointCols={3}
        className={`${styles.grid}`}
        columnClassName={styles.grid__column}
      >
        {/* array of JSX items */}
      </Masonry>

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

No branches or pull requests

4 participants