Card(s) #2982
Replies: 4 comments
-
Some common (all optional depending on context) elements between most of these card-like presentations:
Action Block is interesting in that it has an "inline" mode where the icon, title, and action(s) flow from left to right. |
Beta Was this translation helpful? Give feedback.
-
Prior art for "card" components:
|
Beta Was this translation helpful? Give feedback.
-
Media Card, Info Card
Standard Card
Action Block, Dash Block
Image Card
|
Beta Was this translation helpful? Give feedback.
-
While implementing the new generic Card component (issue #2938), one of the experiments I did was to loop through the React component children and inspect "types" of a sort in order to implement slotted children (see commit: 2646fd0#diff-828712ec2b840f181174f069ade08a16e14bd2af0885a6c30620dc336204e1bb). Some additional description here: #3043 (comment) Ultimately we decided to go with a simpler approach, where Card subcomponents just render normally as React children and there isn't any internal slot structure. Perhaps in the future if we need to we can revisit this. |
Beta Was this translation helpful? Give feedback.
-
We have a slew of card-like things in the system now, many of them in the Blocks category.
And then we're building a new card:
#2938
Can we map out a roadmap towards consolidating at least some of these around a more flexible generic card/container? I'm not sure how I would even document when to use one component or the other in any given context.
Beta Was this translation helpful? Give feedback.
All reactions