Identity Components

Components for displaying blockchain addresses and domain names.

Identity Components

Identity components help you display blockchain addresses and domain names in your application.

Address

The Address component displays Ethereum addresses with optional abbreviation.

import { Address } from '@avalabs/builderkit';

// Basic usage
<Address address="0x1234567890123456789012345678901234567890" />

// With abbreviation
<Address 
  address="0x1234567890123456789012345678901234567890"
  abbreviate={true}
/>

Props

PropTypeDefaultDescription
addressstring-The Ethereum address to display
abbreviatebooleanfalseWhether to show shortened address

Domain

The Domain component handles the display of ENS and other domain names.

import { Domain } from '@avalabs/builderkit';

// Basic usage
<Domain address="0x1234567890123456789012345678901234567890" />

// With fallback to address
<Domain 
  address="0x1234567890123456789012345678901234567890"
  showAddressIfNotAvailable={true}
/>

Props

PropTypeDefaultDescription
addressstring-The address to resolve domain for
showAddressIfNotAvailablebooleanfalseShow address if no domain is found
classNamestring-Additional CSS classes

Is this guide helpful?