Responsive Grid?
See original GitHub issueHello ant-design team,
Is the responsiveness subject covered in this library? I am asking this as I could not find any documentation or example and Layout
component does not have any prop about it.
Thank you.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Responsive grid in 2 minutes with CSS Grid Layout - Travis Horn
The modern solution is a responsive grid that changes based on the size of the screen viewing it. Many developers jump to a...
Read more >Responsive Grid System
The Responsive Grid System isn't a framework. It's not a boilerplate either. It's a quick, easy & flexible way to create a responsive...
Read more >Look Ma, No Media Queries! Responsive Layouts Using CSS ...
In this article, we'll start dipping our toes into the power of CSS Grid by building a couple of common responsive navigation layouts....
Read more >Responsive Grid Design: Ultimate Guide | by Nitish Khagwal
This article highlights the most important aspect of the responsive grid and how product designers can adapt grids in their design workflow.
Read more >Responsive CSS Grid Tutorial - YouTube
New to CSS Grid ? Watch the full Crash Course here: https://www.youtube.com/watch?v=yOPCQ5nD1VsAdd Google Fonts to your web design here: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/ant-design/ant-design/blob/master/components/layout/demo/reponsive.md
Have a look at this link?
Layout.Sider has onBreakpoint and breakpoint props which I use as a workaround to monitor breakpoint changes. This technique is a bit unwieldy most especially when monitoring changes between two or more specific breakpoints but it is quite fast and saves me the trouble of either introducing yet another npm package into the fray or hand-rolling a bespoke solution. At this point, I simply do something along the lines:
<Layout.Sider breakpoint="xs" onBreakpoint={broken => setIsInXsWidth(broken)} />
. TheonBreakpoint
handler could also be wrapped inuseCallback
hook. If ant design has provided a more dedicated solution to this issue as of today, I am yet to become aware of it.