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

Responsive number of columns #99

Open
mr-samani opened this issue Aug 7, 2023 · 1 comment
Open

Responsive number of columns #99

mr-samani opened this issue Aug 7, 2023 · 1 comment
Labels
feature New feature

Comments

@mr-samani
Copy link

How can it be made responsive?

Is such a possibility available?
I want, for example, to change the columns to 2 in tablet size and have the grid layout automatically adjust itself,
or have all items stacked vertically in a single column on mobile devices.

@llorenspujol
Copy link
Contributor

Hi @mr-samani !

This feature is not currently built into the grid. However, it would be nice to implement it one day, since is an easy feature that many people is requesting.

We could define the number of columns per width, something like this:

breakpoints = {lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0},
cols = {lg: 12, md: 10, sm: 6, xs: 4, xxs: 2},

If you are really interested on having this issue, the quickest approach is to implement it yourself. You only need to create a pull request (PR) with the appropriate changes. If you decide to do so, I recommend to join the Discord so I can provide you some guidance.

@llorenspujol llorenspujol added the feature New feature label Sep 5, 2023
@llorenspujol llorenspujol changed the title Resposive Responsive number of columns Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

2 participants