Magoo Component UI logo Magoo Component UI
← Catalog

Transaction Hash

transaction-hash atom experimental

A truncated transaction hash in the mono face with a copy button and an optional link to a block explorer.

The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.

Default
NoExplorer

Props

NameTypeReq
hash string ✓
display string ✓
explorer_url string

Related components

How to use

The truncated display and optional link are static markup. behavior.js copies the full hash from the button's data-hash attribute to the clipboard, flips the icon to a check via data-copied, and announces "Copied!" through an sr-only live region; both revert after about 1.5s. Screenshots never run the behavior, so they show the default copy icon.

Use cases

inlineaction WCAG AA SEO 20 dir: ltr ai-generated