Update description list component #3285
-
Hi all, Hope you are doing well! I have run into a few scenarios recently for various projects where I had to use the description list component (see screenshots below): Just wondering, is there an opportunity for the Paste team to update the component moving forward so that it also accommodates for a horizontal layout? The vertical layout has not always worked for every use case and in some cases, it is helpful to have a horizontal layout. cc: @HartiganHM |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 15 replies
-
Hey @tonge495 ! Can you share what the intended design you're proposing is? Are you looking to have your team build what you've shared in the screenshot, or something else? |
Beta Was this translation helpful? Give feedback.
It's doable with the component right now by wrapping the DescriptionListSets with the horizontal Stack component like I shared in the codesandbox.
Or by using Grid if you wanted to align all the Description Lists you have on a page into uniform columns (which we'd recommend): https://paste.twilio.design/components/grid
We likely won't directly build a horizontal variant into Description List since it's a little more straightforward to do with Stack or Grid. It could be something we add to our Figma library, though, if that's what you're looking for, especially since it's part of our Object Details pattern: https://paste.twilio.design/patterns/object-details