Skip to content

propsToSelectors

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

A prop rule of the CSS 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, object

Operands

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

OperandFrom
prop.kindspec document
prop.enumspec document
conventions.specs.statesdeclared conventions
context.platformemitting platform (React or Web Components)

Derived predicates

NameExpressionSource
derived.isStateConceptconventions.specs.states.<concept>.prop = this propfrom-specs states.buildStateLookup

Cases

Ordered — first match wins.

#WhenEmitsWhy
1derived.isStateConcept = truethe concept’s selector — a pseudo-class (:hover, :disabled) or an aria attribute ([aria-selected="true"])A state concept’s styling follows the browser’s or the contract’s own state surface, not a variant attribute
2context.platform = react[data-<prop>="<value>"] on the component’s root classThe React scaffold writes each variant prop as a data attribute on its root
3context.platform = webcomponents:host([<attr>="<value>"]), where <attr> is the reflected attribute — bare where the name is free, data- where it collides with a global attributeThe custom element reflects the prop; reflectedAttrs is the one function the element and the stylesheet share, so they cannot disagree

Otherwise

Nothing is emitted. — A prop no variant configuration names selects nothing

Props never become declarations. They decide WHICH rule block applies; the styles surface above decides what the block says. Values are normalized by the enumCase contract on both sides of the selector.