What problem does this feature solve?
I was looking for Masonry Component just like Material UI ( https://mui.com/material-ui/react-masonry/ ) . Although It can be done with Flex and Grid but it will ease the coding if we have masonry just like Pinterest use and we have Material UI as an example for Masonry
What does the proposed API look like?
Props
- children : The content of the component.
- columns : Number of columns.
- spacing: Defines the space between children.
- sequential: Allows using sequential order rather than adding to shortest column
3条答案
按热度按时间7cwmlq891#
Seems can be a feature of Flex component.
xe55xuns2#
Seems can be a feature of Flex component.
I'd like to perfect this component
1tuwyuhd3#
I could to have this using this package: https://www.npmjs.com/package/react-responsive-masonry