Skip to content

BlockSuite API Documentation / @blocksuite/blocks / AIItemConfig

Interface: AIItemConfig

Properties

beta?

optional beta: boolean

Defined in

packages/blocks/src/_common/components/ai-item/types.ts:21


handler()?

optional handler: (host) => void

Parameters

host

EditorHost

Returns

void

Defined in

packages/blocks/src/_common/components/ai-item/types.ts:20


icon

icon: TemplateResult | () => HTMLElement

Defined in

packages/blocks/src/_common/components/ai-item/types.ts:12


name

name: string

Defined in

packages/blocks/src/_common/components/ai-item/types.ts:11


showWhen()?

optional showWhen: (chain, editorMode, host) => boolean

Parameters

chain

Chain<InitCommandCtx>

editorMode

DocMode

host

EditorHost

Returns

boolean

Defined in

packages/blocks/src/_common/components/ai-item/types.ts:13


subItem?

optional subItem: AISubItemConfig[]

Defined in

packages/blocks/src/_common/components/ai-item/types.ts:18


subItemOffset?

optional subItemOffset: [number, number]

Defined in

packages/blocks/src/_common/components/ai-item/types.ts:19