@shopify/admin-ui-extensions-react
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Admin UI Extensions React

Admin UI Extensions React is built on top of Admin UI Extensions. It allows a developer to write React-style scripts.

Usage

With the React approach, adding a button looks like the following:

import React from 'react';
import {extend, render, Button} from '@shopify/admin-ui-extensions-react';

function App() {
  return (
    <Button
      title="Press Me"
      primary
      onPress={() => console.log('Pressed')}
      disabled={false}
    />
  );
}

extend(
  'Playground',
  render(() => <App />),
);

You can find more component usage examples alongside each component in packages/admin-ui-extensions-react/src/components

/@shopify/admin-ui-extensions-react/

    Package Sidebar

    Install

    npm i @shopify/admin-ui-extensions-react

    Weekly Downloads

    644

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    138 kB

    Total Files

    228

    Last publish

    Collaborators

    • jaykay101
    • mishsmelle
    • shopify-dep
    • jaimie.rockburn
    • shopify-admin
    • maryharte
    • pmoloney89
    • netlohan