@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

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

851

Version

1.1.0

License

MIT

Unpacked Size

138 kB

Total Files

228

Last publish

Collaborators

  • jaimie.rockburn
  • blittle
  • shopify-admin
  • maryharte
  • crisfmb
  • pmoloney89
  • netlohan
  • st999999
  • justin-irl
  • megswim
  • wcandillon
  • nathanpjf
  • shopify-dep
  • goodforonefare
  • lemonmade
  • vsumner
  • wizardlyhel
  • antoine.grant
  • tsov
  • andyw8-shopify
  • henrytao
  • hannachen
  • vividviolet
  • bpscott