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

How to set grid cols ? #5

Closed
nellysbr opened this issue Mar 12, 2024 · 2 comments
Closed

How to set grid cols ? #5

nellysbr opened this issue Mar 12, 2024 · 2 comments

Comments

@nellysbr
Copy link

Hello! Idk if there's a option, but how can i set how many collums i want for this gallery ?

Sometimes i want to set a row of 3 collums instead of 2 and so on... Eventually i want to style for myself too..

Thanks in advance!

@oluwatobiss
Copy link
Member

You can use the columnWidth prop.

@oluwatobiss
Copy link
Member

@nellysbr The latest react-image-grid-gallery version now has a columnCount prop that allows you to explicitly set the number of columns in the gallery. That should solve this issue, so I will close it now. Thanks!

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

2 participants