Skip to content

numberInference

disposition: bound, direction: figma-to-spec, basis: implementation

A prop rule of the Figma binding. The kinds named below resolve jointly here — which kind a prop even is, or what platform shape it takes, is decided by this rule rather than per kind.

Keys. string, number

Operands

Every fact the rule reads. Nothing outside this set participates.

OperandFrom
property.typeFigma ComponentPropertyDefinitions
property.defaultValueFigma ComponentPropertyDefinitions
conventions.platforms.figma.inferNumberPropsdeclared conventions

Cases

Ordered — first match wins.

#WhenEmitsWhy
1property.type = TEXT and conventions.platforms.figma.inferNumberProps = true and property.defaultValue = passes the numeric guardNumberProp with default and examples carrying the numberADR-029 — opt-in, so a library whose TEXT props are genuinely text never loses them to digits

Otherwise

StringProp with the read default in examples“ — The read default is demo content, never a contract default (ADR-014)

A TEXT property is a string or a number, and only the convention plus the value decide which.