Discuss the resource details layout pattern #8216
Replies: 3 comments 2 replies
-
What if this existed as its own component and looked something like... <ResourceDetailsLayout
title="Product"
breadcrumbs={[{ content: "Products", url: "/products" }]}
secondaryActions={[
{
content: "Duplicate",
icon: DuplicateMinor,
accessibilityLabel: "Secondary action label",
onAction: () => alert("Duplicate action"),
},
{
content: "Archive",
icon: ArchiveMinor,
accessibilityLabel: "Secondary action label",
onAction: () => alert("Archive action"),
},
{
content: "Delete",
icon: DeleteMinor,
destructive: true,
accessibilityLabel: "Secondary action label",
onAction: () => alert("Delete action"),
},
]}
pagination={{
hasPrevious: true,
hasNext: true,
}}
mainContent={
<>
<AlphaCard roundedAbove="sm">
<SkeletonDisplayText size="small" />
</AlphaCard>
<AlphaCard roundedAbove="sm">
<SkeletonDisplayText size="small" />
</AlphaCard>
</>
}
secondaryContent={
<>
<AlphaCard roundedAbove="sm">
<SkeletonDisplayText size="small" />
</AlphaCard>
<AlphaCard roundedAbove="sm">
<SkeletonDisplayText size="small" />
</AlphaCard>
</>
}
/> With this approach, layout details like the space between cards, the space between columns, and at what screen size columns should stack, become implementation details of the |
Beta Was this translation helpful? Give feedback.
-
long table Broke this layout, Table lost the horizontal scrolling, and the UI changed to table size.
|
Beta Was this translation helpful? Give feedback.
-
Hi there, I wonder about the There is a recommendation to use the And a question was asked with the same answer. Will this pattern stand like this, or will this change soon? This may have already been clarified somewhere, but I could not find a defined answer. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Welcome to the resource details layout pattern discussion!
Here are some things you can do here:
💡 Share ideas on how to make this pattern, or its documentation, better.
❓ Ask a specific question about this pattern.
Tips before posting:
💜👩🚀✌️ the Polaris team
Beta Was this translation helpful? Give feedback.
All reactions