CreateEmbedOptions
Defined in: src/ui/embed.tsx:78
Options for createEmbed.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
P extends object |
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
api |
Pick<ApiClient, "setApiBase" | "setApiToken"> |
The product’s API client. | src/ui/embed.tsx:84 |
App |
ComponentType<ShellAppProps & P> |
The product’s root component (the same one the SPA renders). | src/ui/embed.tsx:80 |
displayNames? |
object |
Component display names ({ dashboard: "WebhooksDashboard", token: "WebhooksPortal" }). |
src/ui/embed.tsx:90 |
displayNames.dashboard? |
string |
- | src/ui/embed.tsx:90 |
displayNames.token? |
string |
- | src/ui/embed.tsx:90 |
scopeClass |
string |
The scope class the embed stylesheet is scoped under ("xtandard-webhooks", no dot). |
src/ui/embed.tsx:82 |
themeKey |
string | ThemeStore |
The theme storage key ("xtandard-webhooks:theme"), or an existing store. |
src/ui/embed.tsx:86 |
tokenRouting? |
EmbedRouting |
Default routing of the token component; "memory" by default. |
src/ui/embed.tsx:88 |