WorkflowNodeTemplateProps
WorkflowNodeTemplateProps<
P> =object
Props for the editor’s default workflow-node template. A custom node type wraps this template (or composes its parts) to render its body — see Add a custom node for the full pattern.
id, icon, label, description define the header. selected /
isValid drive visual state. showHandles toggles the connection
dots; layoutDirection controls which sides those dots sit on.
children are rendered inside a collapsible body section.
Generic over P so consumer templates can narrow data.properties to
their schema’s shape without casts:
type MyProps = WorkflowNodeTemplateProps<NodeDataProperties<MySchema>>;Defaults to the wide BaseNodeProperties & Record<string, unknown> so
existing usages remain backward-compatible.
Type Parameters
Section titled “Type Parameters”P = BaseNodeProperties & Record<string, unknown>