web3ui / web3uikit

Lightweight reusable Web3 UI components for dapps.
https://web3uikit.com
MIT License
1.72k stars 269 forks source link

[Crypto Address] - new components #1105

Open BillyG83 opened 1 year ago

BillyG83 commented 1 year ago

Screenshot 2023-05-25 at 09 51 20

please build this new component 👍

Interface

Result

linkUrl example

https://www.dextools.io/app/en/ether/pair-explorer/0x6c4c7f46d9d4ef6bc5c9e155f011ad19fc4ef321

Emkay2309 commented 1 month ago

I can try to create this component using ts

type TextSize = 'body16' | 'body18' | 'caption14' | 'caption12' | 'caption10'; type TextWeight = 'regular' | 'medium' | 'bold'; // Adjust according to your Typography component

interface AddressDisplayProps { address: string; color?: string; textSize?: TextSize; textWeight?: TextWeight; linkUrl?: string; }

use this interface for the type in the AddressDisplay component.