www/apps/ui/app/installation/medusa-admin-extension/page.mdx
export const metadata = {
title: Install Medusa UI for Medusa Admin Customizations,
}
In this guide, you'll learn how to use Medusa UI for building Medusa Admin customizations.
The @medusajs/ui and @medusajs/icons packages are already installed as dependencies of the @medusajs/admin-sdk package in your Medusa project. They're installed by default in your Medusa plugins as well.
So, you can import the packages and use them in your Medusa Admin customizations without any additional installation steps.
For example, to use the UI and icon packages in a UI route:
import { defineRouteConfig } from "@medusajs/admin-sdk"
import { ChatBubbleLeftRight } from "@medusajs/icons"
import { Container, Heading } from "@medusajs/ui"
const CustomPage = () => {
return (
<Container className="divide-y p-0">
<div className="flex items-center justify-between px-6 py-4">
<Heading level="h2">This is my custom route</Heading>
</div>
</Container>
)
}
export const config = defineRouteConfig({
label: "Custom Route",
icon: ChatBubbleLeftRight,
})
export default CustomPage
In this example, you use the Container and Heading components in the UI route. You also use the ChatBubbleLeftRight icon from the Icons package for the UI route's sidebar item.
If you're building Medusa Admin customizations, check out the following documentation guides: