variantAxes
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. boolean, enum, number
Operands
Every fact the rule reads. Nothing outside this set participates.
| Operand | From |
|---|---|
property.type | Figma ComponentPropertyDefinitions |
property.variantOptions | Figma ComponentPropertyDefinitions |
conventions.platforms.figma.inferNumberProps | declared conventions |
Derived predicates
| Name | Expression | Source |
|---|---|---|
derived.booleanPair | property.variantOptions = exactly the pair true/false, case-insensitive | capture-side VARIANT classification |
derived.allNumeric | property.variantOptions = every option numeric | capture-side numeric option guard (ADR-072) |
Cases
Ordered — first match wins.
| # | When | Emits | Why |
|---|---|---|---|
| 1 | property.type = VARIANT and derived.booleanPair = true | BooleanProp with $extensions['com.figma'].type: VARIANT | A two-state axis is a boolean wearing variant clothes; the extension records the source so render rebuilds the axis |
| 2 | property.type = VARIANT and conventions.platforms.figma.inferNumberProps = true and derived.allNumeric = true | NumberProp with the options as enum, authored order, nullable: false | ADR-072 — the enum is the variant axis; render rebuilds the component set from it positionally |
| 3 | property.type = VARIANT | EnumProp with the options as enum, nullable: false | The default case: a closed option list |
Otherwise
Nothing is emitted. — Non-VARIANT property types resolve per kind, outside this rule
One Figma VARIANT property resolves to one of three prop kinds, and no kind alone states the rule.