Skip to content

Address

GitHub

A simple text component that formats the address, truncating the middle part.

0xb79...268

Installation

npm
npx maiton add Address

Usage

import { Address } from "../../../../components/Address";
<Address>0xb794f5ea0ba39494ce839613fffba74279579268</Address>

Props

The Address component extends Text, so you can pass all the TextProps.

length

DescriptionThe number of characters we want to show at the start and end of the address
Typenumber | undefined
Default3