# createConfig | @account-kit/react

> Overview of the createConfig function from @account-kit/react

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

{/* This file is auto-generated by TypeDoc. Do not edit manually. */}

```ts
function createConfig(props, ui?): AlchemyAccountsConfigWithUI;
```

Defined in: [account-kit/react/src/createConfig.ts:52](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/react/src/createConfig.ts#L52)

Wraps the `createConfig` that is exported from `@aa-sdk/core` to allow passing
an additional argument, the configuration object for the Auth Components UI
(the modal and AuthCard).

## Example

```ts
import { sepolia, alchemy } from "@account-kit/infra"
import { AlchemyAccountsUIConfig, createConfig } from "@account-kit/react"
import { QueryClient } from "@tanstack/react-query";

const uiConfig: AlchemyAccountsUIConfig = {
  illustrationStyle: "linear",
  auth: {
    sections: [[{ type: "email" }], [{ type: "passkey" }]],
    addPasskeyOnSignup: true,
  },
}

const config = createConfig({
  transport: alchemy({ apiKey: "your_api_key" })
  chain: sepolia,
  ssr: true,
  sessionConfig: {
    expirationTimeMs: 1000 * 60 * 60, // 1 hour (defaults to 15 min)
  },
}, uiConfig)

export const queryClient = new QueryClient();
```

## Parameters

<table>
  <thead>
    <tr>
      <th align="left">Parameter</th>
      <th align="left">Type</th>
      <th align="left">Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `props`
      </td>

      <td>
        `CreateConfigProps`
      </td>

      <td>
        for creating an alchemy account config
      </td>
    </tr>

    <tr>
      <td>
        `ui?`
      </td>

      <td>
        `any`
      </td>

      <td>
        (optional) configuration to use for the Auth Components UI
      </td>
    </tr>

  </tbody>
</table>

## Returns

[`AlchemyAccountsConfigWithUI`](../type-aliases/AlchemyAccountsConfigWithUI)

an alchemy account config object containing the core and client store, as well as the UI config