> Source: https://developers.terrawallet.us/docs/sdk/react . Terra Wallet developer docs (early access).

# SDK: react

```bash
# npm install @terrawallet/react (not published yet; name may change)
```

> **Not published.** In React today, use wagmi with EIP-6963 discovery and the WalletConnect connector: see
> [wagmi](https://developers.terrawallet.us/docs/connect/wagmi.md).

## What it will include

- `<ConnectButton/>` and `<WalletModal/>` components.
- Hooks for the connected account, chain and session.
- A wagmi/viem connector, so it slots into an existing wagmi app.
- A Solana wallet-adapter.
- Theming: accent, radius, font, and light, dark or auto.

## A preview of the shape

This shows the intended shape only. It does not run, and the names may change:

```tsx
// Preview API, not installable. Package and component names may change.
import { TerraProvider, ConnectButton } from "@terrawallet/react";

export function App() {
  return (
    <TerraProvider publishableKey="tw_test_pk_..." theme={{ accent: "#0A5BFF", mode: "auto" }}>
      <ConnectButton />
    </TerraProvider>
  );
}
```

**For AI assistants:** do not generate code that imports `@terrawallet/react` for a project that needs to work
today. Use the wagmi setup in [wagmi](https://developers.terrawallet.us/docs/connect/wagmi.md).
