Shopify/ui-extensions
关于
Shopify UI 扩展 API 公共定义的代码库。如有问题或需要报告问题,请使用社区论坛:https://community.shopify.dev/c/extensions/5
效率与自动化实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文UI Extensions
This repo contains the public definition of Shopify’s UI extension API. App developers can use these libraries for a strongly-typed, optimized development experience that lets them focus on integrating their app’s features deep into Shopify workflows. You can learn more about what is possible with UI extensions in Shopify’s developer documentation.
Note: UI extensions are a versioned API. This branch contains the APIs for the
2026-04-rcAPI version. The following API versions are available as separate branches in this repo:2025-07,2025-10
Shopify provides UI extension APIs via the @shopify/ui-extensions package which lets developers use a small, strongly-typed JavaScript API for creating UI extensions
What are “UI extensions”?
A UI extension is a JavaScript-based module that can hook in to client-side behaviors on any of Shopify’s first party UI surface areas. The most minimal definition of a UI extension has the following properties, which are configured in a shopify.extension.toml file in your project:
- A
namethat is presented to merchants when interacting with the extension. - The
targetthat the UI extension wishes to inject into. These are represented with string identifiers that describe the surface and responsibility of the extension. For example,purchase.checkout.cart-line-item.render-aftertarget gives a UI Extension the ability to render UI after the each cart line in a checkout. - The JavaScript
modulein your local project that will be run to render UI.
The types in this package allow us to represent additional details about the targets developers can implement. Each target can have a custom set of APIs available to it, which includes:
- What UI Components are available to be rendered, and what properties those UI components accept
- What imperative APIs are provided by the host application, for reading and writing data relevant to the extension
UI extensions are built on an open source project called, remote-dom, which allows them to render native UI elements while being safely sandboxed.
Note: If you are migrating from an API version prior to
2025-10, you can follow the migration guide.
探索相关项目
加载中…