@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
| Prop | Type | Default | Description |
|---|---|---|---|
| addressrequired | string | — | The full hex address (or any string) to render + copy. |
| head | number | 6 | Leading characters to keep (after the 0x prefix). |
| tail | number | 4 | Trailing characters to keep. |
| copyable | boolean | true | Show the inline copy button. |