You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need to add the support for component prop to grid area components.
Why
At the moment all grid areas will render <div> elements. That may not be the desired layout in some cases. For example, sometimes passing a presentational component as the component prop may simplify the layout declaration:
On the other hand, this may encourage the usage of presentational component instead of grid areas. That is not intended and goes against the atomic layout principles (it's similar as mixing Bootstrap grid classes with your own classes, which is a bad idea).
There is not going to be a support for this feature, at least for now. The reasoning is written in the previous comment (that is to discourage a tight coupling between grid area and a presentational component inside it). Closing.
What
Need to add the support for
component
prop to grid area components.Why
At the moment all grid areas will render
<div>
elements. That may not be the desired layout in some cases. For example, sometimes passing a presentational component as thecomponent
prop may simplify the layout declaration:The text was updated successfully, but these errors were encountered: