Socket
Socket
Sign inDemoInstall

@shopify/customer-account-ui-extensions

Package Overview
Dependencies
5
Maintainers
25
Versions
63
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/customer-account-ui-extensions

The API for UI Extensions that run in Shopify's Customer Account


Version published
Maintainers
25
Weekly downloads
19
decreased by-13.64%

Weekly downloads

Readme

Source

Customer Account UI Extensions

Customer Account UI Extensions is a library that enables developers to write custom JavaScript to be sent to and rendered within the Shopify Customer Account web application.

Usage

There are multiple ways to use Customer Account UI Extensions components in your extension.

Vanilla JS

Adding a button looks like the following:

import {extend, Button} from '@shopify/customer-account-ui-extensions';

extend('CustomerAccount::FullPage::RenderWithin', (root, api) => {
  const button = root.createComponent(Button, {
    title: 'Press Me',
    primary: true,
    onPress: () => console.log('Pressed'),
  });

  root.appendChild(button);
});

React

To use the React implementation, check out packages/customer-account-ui-extensions-react.

FAQs

Last updated on 13 Sep 2023

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc