# ENS Profile

> Profile card for an ENS name or address. Avatar, name, bio and links.

- Install: `npx shadcn@latest add @0xui/ens-profile`
- Registry JSON: https://0xui.io/r/ens-profile.json
- Source: https://github.com/fimbul-lab/0xui/blob/main/registry/default/components/ens-profile.tsx

Avatar, name, address with copy, bio, and links from the name's text records (website, X, GitHub, email).

## Installation

```bash
npx shadcn@latest add @0xui/ens-profile
```

## Usage

```tsx
import { EnsProfile } from "@/components/ens-profile";

<EnsProfile name="vitalik.eth" />;

// Or by address: uses its primary name
<EnsProfile address={address} />;
```

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

| `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. |
