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
I suggest to introduce an Area component to Atomic Layout.
Why:
Area component would act similarly to Box, but is designed to be used as a direct child of the templatelessComposition. Area would accommodate the CSS Grid-related props (column, rowEnd, etc.).
I find this useful for scenarios when I need to align direct Composition children (i.e. specify a child's grid-column) without having to convert the Composition to use template/areas.
Also, one thing to keep in mind: Areas rendered this way will not support conditional rendering based on their presence in the areas/template props. At least, with the current setup.
What:
I suggest to introduce an
Area
component to Atomic Layout.Why:
Area
component would act similarly toBox
, but is designed to be used as a direct child of the templatelessComposition
.Area
would accommodate the CSS Grid-related props (column
,rowEnd
, etc.).I find this useful for scenarios when I need to align direct Composition children (i.e. specify a child's
grid-column
) without having to convert the Composition to usetemplate
/areas
.Usage example:
Together with the polymorphic
as
prop theArea
component may be used as an augment component that provides grid-related styles to any direct children.The text was updated successfully, but these errors were encountered: