--- title: Details description: |- The details page allows merchants to view, create and edit objects. Use the right column to provide editable fields, and the right column for supporting information such as status, metadata, and summaries. | Used to | Examples | | --- | --- | | View, edit and create objects | Discounts, shipping labels, newsletters, templates. | ![Preview of the details page pattern](/images/templated-apis-screenshots/admin/patterns/details-example.png) This pattern uses `Badge`, `Box`, `Button`, `Grid`, `Heading`, `Image`, `Link`, `MoneyField`, `NumberField`, `SearchField`, `Section`, `Select`, `Stack`, `Switch`, `Table`, `TextArea`, `TextField`, `UnorderedList`, and `URLField` components. --- ## Design guidelines Design details pages that enable users to create, view, and edit resource objects. ### Navigation * Users must be able to return to the previous page without using the browser button. To achieve this, your app can provide breadcrumbs or a Back button on the page. * Use tabs sparingly for secondary navigation purposes when the nav menu isn't sufficient. * Clicking a tab should only change the content below it, not above. * Tabs should never wrap onto multiple lines. * Navigating between tabs shouldn't cause the tabs to change position or move. * Offer users clear and predictable action labels. --- ### Layout * Design your app to be responsive and adapt to different screen sizes and devices. This ensures a seamless user experience across various platforms. * Use looser spacing for low-density layouts. Use tighter spacing for high-density layouts. * Always use the default width. Full width tends to waste space and make the page harder to parse * In the primary column: Put information that defines the resource object * In the secondary column: Put supporting information such as status, metadata, and summaries * Arrange content in order of importance * Group similar content in the same card * Place unique page actions at the top of the actions list and typical object actions at the bottom --- ### Forms * For more than five inputs, use sections with titles in one card or use multiple cards with headers. * Form inputs should be saved using the App Bridge Contextual Save Bar API. This also applies to forms within max modals. Continuous data validation or auto-save for forms is consistent with the standard Shopify admin save UX. --- api_name: app-home source_url: html: https://shopify.dev/docs/api/app-home/patterns/details md: https://shopify.dev/docs/api/app-home/patterns/details.md --- # Details The details page allows merchants to view, create and edit objects. Use the right column to provide editable fields, and the right column for supporting information such as status, metadata, and summaries. | Used to | Examples | | - | - | | View, edit and create objects | Discounts, shipping labels, newsletters, templates. | ![Preview of the details page pattern](https://shopify.dev/images/templated-apis-screenshots/admin/patterns/details-example.png) This pattern uses `Badge`, `Box`, `Button`, `Grid`, `Heading`, `Image`, `Link`, `MoneyField`, `NumberField`, `SearchField`, `Section`, `Select`, `Stack`, `Switch`, `Table`, `TextArea`, `TextField`, `UnorderedList`, and `URLField` components. *** ## Design guidelines Design details pages that enable users to create, view, and edit resource objects. ### Navigation * Users must be able to return to the previous page without using the browser button. To achieve this, your app can provide breadcrumbs or a Back button on the page. * Use tabs sparingly for secondary navigation purposes when the nav menu isn't sufficient. * Clicking a tab should only change the content below it, not above. * Tabs should never wrap onto multiple lines. * Navigating between tabs shouldn't cause the tabs to change position or move. * Offer users clear and predictable action labels. *** ### Layout * Design your app to be responsive and adapt to different screen sizes and devices. This ensures a seamless user experience across various platforms. * Use looser spacing for low-density layouts. Use tighter spacing for high-density layouts. * Always use the default width. Full width tends to waste space and make the page harder to parse * In the primary column: Put information that defines the resource object * In the secondary column: Put supporting information such as status, metadata, and summaries * Arrange content in order of importance * Group similar content in the same card * Place unique page actions at the top of the actions list and typical object actions at the bottom *** ### Forms * For more than five inputs, use sections with titles in one card or use multiple cards with headers. * Form inputs should be saved using the App Bridge Contextual Save Bar API. This also applies to forms within max modals. Continuous data validation or auto-save for forms is consistent with the standard Shopify admin save UX. *** ### Examples * #### Details ##### jsx ```jsx
{ event.preventDefault(); const formData = new FormData(event.target); const formEntries = Object.fromEntries(formData); console.log("Form data", formEntries); }} onReset={(event) => { console.log("Handle discarded changes if necessary"); }} > Puzzles Duplicate Delete {/* === */} {/* Puzzle information */} {/* === */} {/* === */} {/* Puzzle templates */} {/* === */} Browse Template Actions 16-pieces puzzle Preview 9-pieces puzzle Preview {/* Add more rows as needed here */} {/* If more than 10 rows are needed, details page tables should use the paginate, hasPreviousPage, hasNextPage, onPreviousPage, and onNextPage attributes to display and handle pagination) */} {/* === */} {/* Settings */} {/* === */} Small (9" x 9") Medium (18" x 24") Large (24" x 36") 250 pieces (Easy) 500 pieces (Medium) 1000 pieces (Hard) 2000 pieces (Expert) Standard cardboard Premium cardboard Wooden pieces {/* Use the aside slot for sidebar content */} {/* === */} {/* Puzzle summary */} {/* === */} Mountain view 16-piece puzzle with medium difficulty Pieces can be rotated No time limit Current status: Active
``` ##### html ```html Pattern
Puzzles Duplicate Delete Browse Template Actions 16-pieces puzzle Preview 9-pieces puzzle Preview Small (9" x 9") Medium (18" x 24") Large (24" x 36") 250 pieces (Easy) 500 pieces (Medium) 1000 pieces (Hard) 2000 pieces (Expert) Standard cardboard Premium cardboard Wooden pieces Mountain view 16-piece puzzle with medium difficulty Pieces can be rotated No time limit Current status: Active
``` ## Related [Requirements - Built for Shopify](https://shopify.dev/docs/apps/launch/built-for-shopify/requirements)