BlockSuite API Documentation / @blocksuite/blocks / AIItemConfig
Interface: AIItemConfig
Properties
handler()?
optional
handler: (host
) =>void
Parameters
• host: EditorHost
Returns
void
Source
packages/blocks/src/_common/components/ai-item/types.ts:20
icon
icon:
TemplateResult
| () =>HTMLElement
Source
packages/blocks/src/_common/components/ai-item/types.ts:13
name
name:
string
Source
packages/blocks/src/_common/components/ai-item/types.ts:12
showWhen()?
optional
showWhen: (chain
,editorMode
,host
) =>boolean
Parameters
• chain: Chain
<InitCommandCtx
>
• editorMode: EditorMode
• host: EditorHost
Returns
boolean
Source
packages/blocks/src/_common/components/ai-item/types.ts:14
subItem?
optional
subItem:AISubItemConfig
[]
Source
packages/blocks/src/_common/components/ai-item/types.ts:19