AdkitProvider
Configure the Adkit context provider for your React application.
Overview
AdkitProvider initializes the Adkit SDK and provides context to all child components.
Props
| Prop | Type | Required | Description | ||
|---|---|---|---|---|---|
siteId | string | Yes | Your Adkit site ID | ||
theme | `"light" \ | "dark" \ | "auto"` | No | Color theme (default: "auto") |
locale | string | No | Locale for formatting (default: "en-US") |
Example
Notes
AdkitProvider should exist in your appAdSlot components must be descendants of AdkitProvider