# ENS Components

ENS Components is a React library for integrating ENS v2. It includes complete
components, TanStack Query hooks, and framework-independent actions.

<Cards>
  <Card title="Get started" description="Install the package and render your first ENS component." icon="download" to="/docs/getting-started" />

  <Card title="Components" description="Use complete registration, renewal, and profile flows." icon="blocks" to="/docs/components" />

  <Card title="Hooks" description="Build custom React interfaces with typed queries and mutations." icon="braces" to="/docs/hooks" />

  <Card title="Actions" description="Prepare and execute ENS reads and writes outside React." icon="terminal" to="/docs/actions" />
</Cards>

## Choose an API

| API        | Best for                                   |
| ---------- | ------------------------------------------ |
| Components | Complete, accessible ENS user flows        |
| Hooks      | Custom React interfaces                    |
| Actions    | Custom orchestration or code outside React |

All three layers use the same ENS configuration and stable string error codes.
See [Choosing an API](/docs/guides/choosing-an-api) for a detailed comparison.

:::info[ENS v2 network support]
The built-in `testnet` configuration targets the ENS v2 Sepolia deployment.
The `mainnet` preset is reserved until an ENS v2 mainnet deployment is
available.
:::

Use a [custom configuration](/docs/guides/custom-configuration) for another
compatible deployment.
