Skip to content

slotsToChildren

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. slot

Operands

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

OperandFrom
prop.defaultSlotspec document (ADR-099)
configuration.valuethe filling configuration

Cases

Ordered — first match wins.

#WhenEmitsWhy
1prop.defaultSlot = true and configuration.value presentthe fill as this instance’s JSX children — the scaffold reads its designated default slot from props.childrenWhatever kind the fill is: a $slotContent reference composes, a literal string becomes JSX text
2configuration.value = a $slotContent reference on a non-default slot<prop>={<>…composed JSX…</>} as a named attributeAn explicit binding is the only shape that can say which of several slots a fill belongs to

Otherwise

Nothing is emitted. — A prop’s spelling never nominates a default slot — with no declared defaultSlot, every fill is a named prop and a literal string against an undeclared slot is refused

The declared defaultSlot is the TARGET component’s, read from its contract — never inferred from the key’s spelling.