fluentui
fluentui copied to clipboard
Component API for Fabric grid layout
In order to use the fabric grid layout, you have to import the entire fabric css, and manually specify classnames on divs. Can a react component API be built to encapsulate this?
<GridRow >
<GridCol sizes={{sm: 6, md: 4, lg: 2}}>
{content}
</GridCol>
</GridRow/>
What component or utility would this be added to
New components for Grid,GridRow, GridCol.
Since CSS now has first-class support for grid layout, we're not likely to implement a component for applying the Fabric Core grid classes at this point.
However, we do have an issue #5418 for adding a component which encapsulates the built-in CSS grid. No current ETA for when we'll get that done, but it's definitely on our radar.