Skip to content

@pgege/kaboo-react


Function: InterruptRenderersProvider()

InterruptRenderersProvider(__namedParameters): Element

Defined in: src/context/InterruptRenderers.tsx:47

Makes the app's interruptRenderers overrides available to every surface that renders an interrupt prompt — the chat-level slot, a Timeline's inline tool anchor, and the wildcard tool row — so a custom card applies uniformly no matter where the gate is anchored. Also carries approvalScopes, the approval options the app allows. Included automatically by KabooProvider.

Parameters

__namedParameters

approvalScopes?

readonly ApprovalScope[]

The approval scopes the app allows. A request offers only the scopes both the agent and the app allow; once is always offered. Defaults to all.

children

ReactNode

renderers?

InterruptRenderers

Returns

Element

Example

import { InterruptRenderersProvider } from "@pgege/kaboo-react";

function Providers({ children }: { children: React.ReactNode }) {
  return (
    <InterruptRenderersProvider approvalScopes={["once", "thread"]}>
      {children}
    </InterruptRenderersProvider>
  );
}