Skip to content

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.

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

Derived predicates

NameExpressionSource
derived.booleanPairproperty.variantOptions = exactly the pair true/false, case-insensitivecapture-side VARIANT classification
derived.allNumericproperty.variantOptions = every option numericcapture-side numeric option guard (ADR-072)

Cases

Ordered — first match wins.

#WhenEmitsWhy
1property.type = VARIANT and derived.booleanPair = trueBooleanProp with $extensions['com.figma'].type: VARIANTA two-state axis is a boolean wearing variant clothes; the extension records the source so render rebuilds the axis
2property.type = VARIANT and conventions.platforms.figma.inferNumberProps = true and derived.allNumeric = trueNumberProp with the options as enum, authored order, nullable: falseADR-072 — the enum is the variant axis; render rebuilds the component set from it positionally
3property.type = VARIANTEnumProp with the options as enum, nullable: falseThe 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.