react-masonry-css icon indicating copy to clipboard operation
react-masonry-css copied to clipboard

Add support for css modules

Open arjanvillon opened this issue 4 years ago • 3 comments

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.

arjanvillon avatar Jun 15 '21 18:06 arjanvillon

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

mienaikoe avatar Jul 11 '21 19:07 mienaikoe

Can you provide an example?

fondberg avatar Sep 06 '21 17:09 fondberg

Could you not do something like this?:

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

C-Garza avatar Dec 20 '21 02:12 C-Garza