Chain Components

Components for displaying and selecting blockchain networks.

Chain Components

Chain components help you manage network selection and display chain information.

ChainIcon

The ChainIcon component displays chain logos.

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

// Basic usage
<ChainIcon chain_id={43114} />

Props

PropTypeDefaultDescription
chain_idnumber-Chain ID to display
classNamestring-Additional CSS classes

ChainDropdown

The ChainDropdown component provides network selection functionality.

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

// Basic usage
<ChainDropdown
  selected={43114}
  list={[43114, 43113]}
  onSelectionChanged={(chainId) => {
    console.log('Selected chain:', chainId);
  }}
/>

Props

PropTypeDefaultDescription
selectednumber-Currently selected chain ID
listnumber[]-List of available chain IDs
onSelectionChanged(chain_id: number) => void-Selection change callback
classNamestring-Additional CSS classes

ChainRow

The ChainRow component displays detailed chain information.

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

// Basic usage
<ChainRow
  chain_id={43114}
  name="Avalanche C-Chain"
/>

Props

PropTypeDefaultDescription
chain_idnumber-Chain ID
namestring-Chain name
classNamestring-Additional CSS classes

Is this guide helpful?