Shahed Nasser 45ec3661df fix admin tsconfig vor 1 Jahr
..
README.md 1b6b8f33fc cleaned up src directory vor 1 Jahr
tsconfig.json 45ec3661df fix admin tsconfig vor 1 Jahr

README.md

Admin Customizations

Admin customizations are coming soon.

You can extend the Medusa Admin to add widgets and new pages. Your customizations interact with API routes to provide merchants with custom functionalities.

Example: Create a Widget

A widget is a React component that can be injected into an existing page in the admin dashboard.

For example, create the file src/admin/widgets/product-widget.tsx with the following content:

import type { WidgetConfig } from "@medusajs/admin"

const ProductWidget = () => {
  return (
    <div>
      <h2>Product Widget</h2>
    </div>
  )
}

export const config: WidgetConfig = {
  zone: "product.details.after",
}

export default ProductWidget

This inserts a widget with the text “Product Widget” at the end of a product’s details page.