Skip to content

Function: PlanList()

Call Signature

ts
function PlanList(content: ChildBlock[]): Block;

Defined in: src/renderer/blocks/index.ts:2653

Experimental

PlanList — collapsible high-level plan / TODO list with optional streaming shimmer on the title. Drop PlanItem blocks inside.

Parameters

ParameterType
contentChildBlock[]

Returns

Block

Example

ts
PlanList({title: 'Steps'}, [
  PlanItem({status: 'done'}, [Text({content: 'Read docs'})]),
  PlanItem({status: 'in-progress'}, [Text({content: 'Wire components'})]),
  PlanItem([Text({content: 'Open PR'})]),
]);

Call Signature

ts
function PlanList(options: PlanListBlockProps, content: ChildBlock[]): Block;

Defined in: src/renderer/blocks/index.ts:2654

Experimental

PlanList — collapsible high-level plan / TODO list with optional streaming shimmer on the title. Drop PlanItem blocks inside.

Parameters

ParameterType
optionsPlanListBlockProps
contentChildBlock[]

Returns

Block

Example

ts
PlanList({title: 'Steps'}, [
  PlanItem({status: 'done'}, [Text({content: 'Read docs'})]),
  PlanItem({status: 'in-progress'}, [Text({content: 'Wire components'})]),
  PlanItem([Text({content: 'Open PR'})]),
]);

Matterway Assistant SDK Documentation