🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

@shopify/ui-extensions

Package Overview
Dependencies
Maintainers
6
Versions
1313
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/ui-extensions

This package contains the public type definitions and utilities needed to create Shopify UI extensions.

snapshot
npmnpm
Version
0.0.0-snapshot-20251028152348
Version published
Weekly downloads
46K
-6.06%
Maintainers
6
Weekly downloads
 
Created
Source

@shopify/ui-extensions

This package contains the public type definitions and utilities needed to create Shopify UI extensions.

This package supports the development of UI extension for Admin, Customer account, POS, and Checkout surfaces.

All extensions, regardless of where they appear in Shopify, make use of the same underlying technology, and most of the same “core” components (e.g., s-block, s-button, s-text-field, etc) and capabilities (e.g., direct API access, session tokens). Separating APIs by surface makes it easier for a developer to see what is available to them in each context, and gives us a flexible system for introducing components and APIs available in only some areas of Shopify.

Note: If you are migrating from an API version prior to 2025-10, you can follow the migration guide.

A checkout extension using Preact would be written as follows:

import '@shopify/ui-extensions/preact';
import {render} from 'preact';

export default function extension() {
  render(<Extension />, document.body);
}

function Extension() {
  return (
    <s-text>Line item title: {shopify.target.value.merchandise.title}</s-text>
  );
}

FAQs

Package last updated on 28 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts