Skip to content

Type Editor


Type Editor / @type-editor/menu / menu-items/heading-item / headingItem

Function: headingItem()

ts
function headingItem(level?, title?, nodeType?, codeBlockNodeType?): MenuItem;

Defined in: packages/menu/src/menu-items/heading-item.ts:16

Menu item for the heading command.

Parameters

ParameterTypeDefault value
level"1" | "2" | "3" | "4" | "5" | "6"'1'
titlestring...
nodeTypeNodeTypeschema.nodes.heading
codeBlockNodeTypeNodeTypeschema.nodes.code_block

Returns

MenuItem