@cdr-kit/react-ui/DX primitives/ShortAddress

<ShortAddress>

Truncated mono address chip with an inline <CopyButton>. The chip's default truncation is 6 / 4 (head / tail).
import { ShortAddress } from "@cdr-kit/react-ui"

Live preview

0xac59…6C8C
import { ShortAddress } from "@cdr-kit/react-ui";

<ShortAddress address="0xac592f165D8dD1f27A087bdB39c0b2f619FF6C8C" />

Props

PropTypeDefaultDescription
addressrequiredstringThe full hex address (or any string) to render + copy.
headnumber6Leading characters to keep (after the 0x prefix).
tailnumber4Trailing characters to keep.
copyablebooleantrueShow the inline copy button.