Utilities - Admin Components

Note: These utilities are available since Medusa v2.21.0.

The @medusajs/dashboard/lib subpath exports the utilities that the Medusa Admin uses to format data, validate forms, and register custom table and search behavior. Use them in your admin extensions to handle values the same way the Medusa Admin does.

Code
import { getStylizedAmount } from "@medusajs/dashboard/lib"

Available Utilities#

Money & Currency
Addresses
Form Validation
Table Utilities
Search Entities
Was this page helpful?
Ask Bloom
For assistance in your development, use Claude Code Plugins or Docs MCP server in Cursor, VSCode, etc...FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break
⇧↵