Skip to content

EmbedBaseProps

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

The props every embed component accepts (products add their own, e.g. initialTenant).

Property Type Description Defined in
apiBaseUrl? string Where the panel API and /config are mounted ("/webhooks", "https://admin.example.com/x"). src/ui/embed.tsx:41
className? string Extra className on the wrapper. 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. src/ui/embed.tsx:46
fetch? FetchLike Custom fetch (inject headers, instrument calls). src/ui/embed.tsx:48
logoUrl? string Navbar logo image URL (replaces the wordmark). Overrides server /config. src/ui/embed.tsx:68
queryClient? QueryClient Bring your own QueryClient; a shared one is created otherwise. src/ui/embed.tsx:50
routerBase? string Base path for routing: "browser" (e.g. "/admin/webhooks"). 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. 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. src/ui/embed.tsx:56