Admin block
The admin block component enables admin block extensions to appear inline on resource pages. Use admin block to create embedded extension experiences that feel native to the Shopify admin interface, with automatic height management, expansion controls, and content overflow handling.
Learn how to build an admin block extension.
Supported targets
- admin.
abandoned-checkout-details. block. render - admin.
catalog-details. block. render - admin.
collection-details. block. render - admin.
company-details. block. render - admin.
company-location-details. block. render - admin.
customer-details. block. render - admin.
draft-order-details. block. render - admin.
gift-card-details. block. render - admin.
order-details. block. render - admin.
product-details. block. render - admin.
product-details. configuration. render - admin.
product-details. reorder. render - admin.
product-variant-details. block. render - admin.
product-variant-details. configuration. render
Supported targets
- admin.
abandoned-checkout-details. block. render - admin.
catalog-details. block. render - admin.
collection-details. block. render - admin.
company-details. block. render - admin.
company-location-details. block. render - admin.
customer-details. block. render - admin.
draft-order-details. block. render - admin.
gift-card-details. block. render - admin.
order-details. block. render - admin.
product-details. block. render - admin.
product-details. configuration. render - admin.
product-details. reorder. render - admin.
product-variant-details. block. render - admin.
product-variant-details. configuration. render
Anchor to PropertiesProperties
Configure the following properties on the admin block component.
- Anchor to collapsedSummarycollapsedSummarycollapsedSummarystringstring
The summary text displayed when the app block is collapsed. Summaries longer than 30 characters will be truncated.
- Anchor to headingheadingheadingstringstring
The text displayed as the block's title in the header. If not provided, the extension name will be used.
Anchor to ExamplesExamples
Anchor to Display an inline admin blockDisplay an inline admin block
Display an inline block on an admin resource page. This example shows a simple block with a heading property and text content.
Preview
html
Anchor to Show a collapsed summaryShow a collapsed summary
Provide a preview of the block content when it is collapsed. This example uses the collapsed-summary attribute to show a short text summary in the block header.
Preview
html
Anchor to Display a data tableDisplay a data table
Present structured data in rows and columns within a block. This example displays inventory levels across locations using a table.
Preview
html
Anchor to Show status with badgesShow status with badges
Highlight key status information with visual indicators. This example shows an order risk assessment with a warning badge and a list of risk factors.
Preview
html
Include interactive buttons so merchants can take action directly from the block. This example shows subscription details with a button group for pause and cancel actions.
Preview
html
Anchor to Best practicesBest practices
- Provide clear context: Ensure merchants understand what the block contains and its purpose at a glance, without needing to expand or interact with it.
- Use the collapsed summary effectively: Write concise summaries that give merchants key information when the block is collapsed.
- Structure content by priority: Place the most important information at the top. Use collapsible sections, tabs, or progressive disclosure for secondary details.
Anchor to LimitationsLimitations
- When your block's content exceeds 300px in height, Shopify automatically displays a Show more button. This button can't be removed or disabled. It's a core part of how admin blocks maintain page performance.
- After merchants click Show more, blocks can expand up to their maximum allowed height. Content that exceeds this limit will be cut off.
- When content's too large for the block, merchants see a link to view the full extension in your app. This ensures all content remains accessible.
- Summaries longer than 30 characters will be automatically truncated.
- During development, you'll see console warnings when your content exceeds height limits, helping you optimize your block's layout.