Skip to main content
Frame is the base embed component. Canvas, Dashboard, Chat, KnowledgeGraph, Preview, and Presentation wrap it with a fixed tool. Use Frame when you need to pass tool and resourceId yourself. It still reads token and theme from AiqlProvider. Internally, Frame uses useEmbedFrame to build https://app.aiql.io/embed/{workspaceId}/{tool}/{resourceId}?token=...&theme=... from the JWT claims. The package does not ship chrome or theme styles. There is no wrapper element — Frame renders the iframe directly (plus optional loading/error nodes). The only inline styles are an iframe reset (border: 0, display: block, width/height: 100%). Pass className / style onto the iframe, or size it from your parent layout. The iframe allow attribute includes clipboard-write and fullscreen. Fullscreen lets presentation Present mode take over the screen when the host page allows it.

Import

Usage

Basic

Tools

Custom loading and error UI

API Reference

Frame props

token and theme come from AiqlProvider. Prefer Canvas, Dashboard, Chat, KnowledgeGraph, Preview, or Presentation when you know the tool in advance. For artifact open events and the postMessage protocol, see AiqlProvider and useEmbedNavigator.