Skip to content

Commit 4bbceea

Browse files
committed
docs(shell-docs): IframeSwitcher id forwarding + V2 SDK prose fix
IframeSwitcher: forward the `id` prop to a wrapping `<div id={id}>` so MDX authors can deep-link to a specific switcher instance. The prop was declared but never consumed. oss-vs-enterprise.mdx: fix the Frontend SDK bullet to reflect canonical V2 — both hooks and prebuilt components ship from `@copilotkit/react-core` (the standalone `@copilotkit/react-ui` package is V1-era).
1 parent 646a058 commit 4bbceea

2 files changed

Lines changed: 22 additions & 19 deletions

File tree

showcase/shell-docs/src/components/content/iframe-switcher.tsx

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ interface IframeSwitcherProps {
1212
}
1313

1414
export function IframeSwitcher({
15+
id,
1516
exampleUrl,
1617
codeUrl,
1718
exampleLabel = "Demo",
@@ -27,23 +28,25 @@ export function IframeSwitcher({
2728
};
2829

2930
return (
30-
<Tabs items={[exampleLabel, codeLabel]}>
31-
<Tab value={exampleLabel}>
32-
<iframe
33-
src={exampleUrl}
34-
style={iframeStyle}
35-
sandbox="allow-scripts allow-same-origin allow-forms allow-popups"
36-
loading="lazy"
37-
/>
38-
</Tab>
39-
<Tab value={codeLabel}>
40-
<iframe
41-
src={codeUrl}
42-
style={iframeStyle}
43-
sandbox="allow-scripts allow-same-origin allow-forms allow-popups"
44-
loading="lazy"
45-
/>
46-
</Tab>
47-
</Tabs>
31+
<div id={id}>
32+
<Tabs items={[exampleLabel, codeLabel]}>
33+
<Tab value={exampleLabel}>
34+
<iframe
35+
src={exampleUrl}
36+
style={iframeStyle}
37+
sandbox="allow-scripts allow-same-origin allow-forms allow-popups"
38+
loading="lazy"
39+
/>
40+
</Tab>
41+
<Tab value={codeLabel}>
42+
<iframe
43+
src={codeUrl}
44+
style={iframeStyle}
45+
sandbox="allow-scripts allow-same-origin allow-forms allow-popups"
46+
loading="lazy"
47+
/>
48+
</Tab>
49+
</Tabs>
50+
</div>
4851
);
4952
}

showcase/shell-docs/src/content/docs/concepts/oss-vs-enterprise.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ CopilotKit is two products in one repository: an **open-source frontend stack**
1111

1212
The OSS layer is everything you need to build a working agentic React app. It runs without any external service from CopilotKit:
1313

14-
- **Frontend SDK**`@copilotkit/react-core` (hooks: `useAgent`, `useFrontendTool`, `useAgentContext`, `useThreads`, etc.) and `@copilotkit/react-ui` (prebuilt components: `CopilotChat`, `CopilotSidebar`, `CopilotPopup`).
14+
- **Frontend SDK**`@copilotkit/react-core`, exporting both hooks (`useAgent`, `useFrontendTool`, `useAgentContext`, `useThreads`, etc.) and prebuilt components (`CopilotChat`, `CopilotSidebar`, `CopilotPopup`).
1515
- **Runtime**`@copilotkit/runtime`, the request handler that mounts in your application server. Framework-agnostic core plus thin adapters for Express, Hono, Bun, Deno, Cloudflare Workers.
1616
- **AG-UI protocol** — open standard for agent ↔ frontend communication. 16 standardized event types, transport-agnostic.
1717
- **Built-in Agent**`BuiltInAgent` runs an in-process agent loop (OpenAI / Anthropic / Google / any AI-SDK model) without requiring an external framework.

0 commit comments

Comments
 (0)