Loading ENS profile
Components
ENS Profile
Profile card for an ENS name or address. Avatar, name, bio and links.
Avatar, name, address with copy, bio, and links from the name’s text records (website, X, GitHub, email).
Installation
Section titled “Installation”npx shadcn@latest add @0xui/ens-profilepnpm dlx shadcn@latest add @0xui/ens-profileyarn dlx shadcn@latest add @0xui/ens-profilebunx --bun shadcn@latest add @0xui/ens-profileimport { EnsProfile } from "@/components/ens-profile";
<EnsProfile name="vitalik.eth" />;
// Or by address: uses its primary name<EnsProfile address={address} />;Loading ENS profile
ENS lives on Ethereum mainnet, so mainnet must be in your wagmi config. Pass records to read other text records. Unknown keys are fetched and returned by useEnsProfile, but not rendered.
States
Section titled “States”data-phase |
Meaning |
|---|---|
loading |
A skeleton measured from the avatar, name and address. |
ready |
Profile shown. |
not-found |
The name has no address, or the address has no primary name. |
