Skip to content

Untitled number in Mermaid Config Schema

txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/StateDiagramConfig/properties/minNodeWidth

Minimum width of the label area of a node.

Labels narrower than this are widened to it, so nodes with short text get a uniform width; the node's own padding is added on top, the same way it is for wrappingWidth. Nodes with an explicit width are not affected.

AbstractExtensibleStatusIdentifiableCustom PropertiesAdditional PropertiesAccess RestrictionsDefined In
Can be instantiatedNoUnknown statusUnknown identifiabilityForbiddenAllowednoneconfig.schema.json*

minNodeWidth Type

number

minNodeWidth Default Value

The default value is:

json
120
Opens in mermaid.ai