agentskit.js
Contribute

Docs MDX components

Embeddable components available inside every .mdx file — Stackblitz, CodeSandbox, GIFs, Mermaid.

Every MDX page under /docs has access to these components. No import required.

<StackblitzEmbed />

Live editable sandbox for any GitHub path.

<StackblitzEmbed
  project="AgentsKit-io/agentskit/tree/main/apps/example-react"
  file="src/App.tsx"
  height={520}
/>
PropTypeDefault
projectstringrequired — owner/repo/tree/branch/path or Stackblitz id
filestring
heightnumber520
titlestringauto
lazybooleantrue (click-to-load, keeps LCP fast)

<CodeSandboxEmbed />

Mirror shape for CodeSandbox-hosted examples.

<CodeSandboxEmbed sandbox="abcd123" file="/src/App.tsx" height={520} />

<GifEmbed />

A11y-aware GIF with reduced-motion fallback.

<GifEmbed
  src="/demos/streaming-chat.gif"
  poster="/demos/streaming-chat.png"
  alt="Streaming chat response with tool calls"
  caption="RAG chat responding with sources"
/>

Respects prefers-reduced-motion — shows the PNG poster + a link to the animation for users with motion sensitivity.

<Mermaid />

Inline diagrams. See components/mermaid.tsx.

Using all together

A typical recipe page mixes code blocks, a GIF showing the outcome, and a live Stackblitz:

## What you'll build

<GifEmbed src="/demos/rag-chat.gif" alt="RAG chat UI streaming" />

## Live sandbox

<StackblitzEmbed project="AgentsKit-io/agentskit/tree/main/apps/example-react" file="src/App.tsx" />

## Copy-paste

\`\`\`ts
// ...
\`\`\`
✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page