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.
| Operand | From |
|---|---|
property.type | Figma ComponentPropertyDefinitions |
property.defaultValue | Figma ComponentPropertyDefinitions |
conventions.platforms.figma.inferNumberProps | declared conventions |
Cases
Ordered — first match wins.
| # | When | Emits | Why |
|---|---|---|---|
| 1 | property.type = TEXT and conventions.platforms.figma.inferNumberProps = true and property.defaultValue = passes the numeric guard | NumberProp with default and examples carrying the number | ADR-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.