DisplayId - Admin Components
Note: This component is available since Medusa v2.21.0.
The DisplayId component shows the last seven characters of an ID, prefixed by a hash. When the user hovers over it, Medusa shows the full ID in a tooltip, and when the user clicks it, Medusa copies the full ID to the clipboard and shows a success toast.
Example#
Use DisplayId in a widget or UI route to show a record's ID in a compact way:
Props#
The component accepts the DisplayIdProps type:
Loading...
Was this page helpful?