Skip to main content

Overview

  • React provider that configures and renders the InterwovenKit widget shell (drawer, routes, and supporting providers).
  • Mount once near the top of your app, wrapping your root component.
  • Privy and AutoSign are optional. Configure privyContext and enableAutoSign only if needed. AutoSign requires Privy (PrivyProvider and privyContext).

Prerequisites

  • Must be used within a React Query QueryClientProvider.
  • Must be used within a wagmi WagmiProvider if using wallet-related APIs.
  • Client-only (no SSR): Put this in a use client provider tree, or use a dynamic import in Next.js.

Styles

  • CSS styles must be injected manually using injectStyles once at app startup. Otherwise the UI will be unstyled.

Quickstart

This example shows the provider structure. For complete setup configurations, see Provider Setup.

Props

Return value

Renders children and mounts the InterwovenKit UI shell.

Examples

Custom chain configuration

This example shows only the InterwovenKitProvider configuration. For complete provider setup including QueryClientProvider, WagmiProvider, and injectStyles, see Provider Setup.

Notes

Type reference (advanced)

Types Chain, GeneratedType, and AminoConverters are from external packages. See @initia/initia-registry-types, @cosmjs/proto-signing, and @cosmjs/stargate for details. PrivyContext members are derived from Privy hooks: usePrivy, useCreateWallet, useWallets, and useLoginWithSiwe from @privy-io/react-auth.