what should I use to create a grid layout? #23793
-
I would like to build a layout: header, body and footer. Do I have to use grid from fabric ui, stack or whatever? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hi @imir-hoxha, Fluent UI v8 and v9 do not offer a For layout in modern web browsers I recommend you use CSS grid and Flexbox. Based on the layout you described I'd use CSS grid to define the header, body and footer areas. Grid by Example is a site that can help you get started with CSS grid if you're unfamiliar with it. |
Beta Was this translation helpful? Give feedback.
-
@spmonahan any chance of updating the docs/react.fluentui.dev site to clarify this? I spent a long time looking there for clarity on "idiomatic Fluent styling patterns" for v9 as my teams and I have gotten used to Stack and Flex over the years, it took a while to think to look at the GitHub discussions for the repo. The only info there is that Stack was removed and Flex has a shim. The linked roadmap doesn't include anything about Stack or Flex, so no luck there either. |
Beta Was this translation helpful? Give feedback.
Hi @imir-hoxha,
Fluent UI v8 and v9 do not offer a
Grid
component and while v8 provides aStack
component v9 will not.For layout in modern web browsers I recommend you use CSS grid and Flexbox. Based on the layout you described I'd use CSS grid to define the header, body and footer areas.
Grid by Example is a site that can help you get started with CSS grid if you're unfamiliar with it.