Skip to content

BlockSuite API Documentation / @blocksuite/presets / createTextRenderer

Function: createTextRenderer()

createTextRenderer(host, options): (answer, state?) => TemplateResult<1> | typeof nothing

Parameters

host: EditorHost

options: TextRendererOptions

Returns

Function

Parameters

answer: string

state?: AffineAIPanelState

Returns

TemplateResult<1> | typeof nothing

Source

packages/presets/src/ai/messages/text.ts:272