Skip to content

TokenEmbedBaseProps

Defined in: src/ui/embed.tsx:72

Props of the token component: EmbedBaseProps plus the token.

Property Type Description Inherited from Defined in
apiBaseUrl? string Where the panel API and /config are mounted ("/webhooks", "https://admin.example.com/x"). EmbedBaseProps.apiBaseUrl src/ui/embed.tsx:41
className? string Extra className on the wrapper. EmbedBaseProps.className src/ui/embed.tsx:58
credentials? RequestCredentials credentials mode for API requests (default "same-origin"). For a cross-origin embed with cookie auth, use "include" and enable cors on the panel. EmbedBaseProps.credentials src/ui/embed.tsx:46
fetch? FetchLike Custom fetch (inject headers, instrument calls). EmbedBaseProps.fetch src/ui/embed.tsx:48
logoUrl? string Navbar logo image URL (replaces the wordmark). Overrides server /config. EmbedBaseProps.logoUrl src/ui/embed.tsx:68
queryClient? QueryClient Bring your own QueryClient; a shared one is created otherwise. EmbedBaseProps.queryClient src/ui/embed.tsx:50
routerBase? string Base path for routing: "browser" (e.g. "/admin/webhooks"). EmbedBaseProps.routerBase src/ui/embed.tsx:66
routing? EmbedRouting "hash" (default for the dashboard) never touches the host router; "browser" uses real paths under routerBase; "memory" keeps everything in memory (query string included); or pass a wouter location hook. EmbedBaseProps.routing src/ui/embed.tsx:64
theme? ThemeMode Theme handling. The embed never writes to the host document; it applies the resolved theme to its own wrapper. "auto" (default) shows the panel’s own switcher; "inherit" follows the host page live; "light"/"dark" force one. EmbedBaseProps.theme src/ui/embed.tsx:56
token string The portal/viewer token minted server-side, sent as Authorization: Bearer …. - src/ui/embed.tsx:74