Skip to content

statesToContract

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

A prop rule of the React 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

Operands

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

OperandFrom
conventions.specs.statesdeclared conventions
concept.contractthe shared state-concept table (from-specs states.ts)

Cases

Ordered — first match wins.

#WhenEmitsWhy
1concept.contract = omitnothing — the prop leaves the contract; the CSS binding selects on the browser pseudo-classHover, focus, active are the browser’s to drive; a consumer cannot meaningfully set them
2concept.contract = keepthe prop stays a parameter; the scaffold writes the concept's aria attribute when it is setDisabled, selected, invalid are consumer-set facts the DOM should also state

Otherwise

the prop is an ordinary parameter — A prop no state entry names is not a state

A prop is omitted only when EVERY concept entry naming it says omit. The concept table — selector and contract disposition per concept — is shared between both emitters and the CSS transform, so the three cannot disagree.