For the complete documentation index, see /llms.txt. A single-fetch full bundle is at /llms-full.txt. Every docs page is also available as Markdown by appending .md to its URL, or by requesting it with Accept: text/markdown.

AgentDescription

Renders the agent's registered description text from the identity registry.

Preview

Usage

import { AgentDescription } from "@erc8004/ui"
<AgentDescription agentRegistry="eip155:8453:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432" agentId={2290} />

Examples

Inside AgentProvider

Renders the description text without repeating agent identity props.

<AgentProvider agentRegistry="eip155:8453:0x8004...a432" agentId={2290}>
  <AgentDescription />
</AgentProvider>

Truncated to Two Lines

Use className with line-clamp to constrain long descriptions inside compact cards.

<AgentDescription
  agentRegistry="eip155:8453:0x8004...a432"
  agentId={2290}
  className="line-clamp-2 max-w-sm text-sm text-erc8004-muted-fg"
/>

In Context

AgentDescription as part of a profile header composition.

<AgentProvider agentRegistry="eip155:8453:0x8004...a432" agentId={2290}>
  <div className="flex items-center gap-4 p-4 bg-neutral-900 border border-white/20 rounded-lg">
    <AgentImage className="min-h-24 min-w-24" />
    <div className="flex flex-col gap-2">
      <div className="flex items-center gap-4">
        <AgentName />
        <VerificationBadge />
      </div>
      <AgentDescription />
    </div>
  </div>
</AgentProvider>

API Reference

PropTypeRequiredDefaultDescription
agentRegistrystringNoAgent registry in the format "eip155:{chainId}:{contractAddress}". Required unless inside an <AgentProvider>.
agentIdnumberNoERC-721 token ID of the agent. Required unless inside an <AgentProvider>.
classNamestringNoOptional CSS classes merged onto the component root for layout, spacing, or custom styling (e.g. Tailwind).

States

This component handles loading and error states internally with inline placeholders. No configuration needed.