Skip to content

Slot Content Reference

A SlotContentRef names the act of filling a slot. It is a single-key object whose $slotContent value is a JSON Pointer to the fill, so the same content can be authored once and referenced from many places.

Members

PropertyTypeRequiredDescription
$slotContentstringYesJSON Pointer to the fill’s structural triplet

Resolution

The pointer resolves to one of three targets — all yielding an anatomy + elements + layout triplet:

TargetExample pointerResolves to
Component.slotContentExamples entry#/components/pill/slotContentExamples/composedLabelthat SlotContent
Composition entry#/compositions/pageGridthe composition’s top-level triplet
Composition.slotContent entry#/compositions/filterResultsPage/slotContent/pageHeaderthat SlotContent

The $slotContent key discriminates the reference — it names the act of filling a slot, not the target type.

The components segment names the whole spec-key space, not the components directory: a composition spec addresses slotContentExamples — other specs’ and its own — through the same #/components/<spec key>/slotContentExamples/<name> form, optionally with /subcomponents/<sub>/ before slotContentExamples for a subcomponent-owned fill. Those two forms are the only ones the emitters resolve today; the #/compositions/… forms above are declared by the schema but not yet resolved by any consumer, so generated and authored specs alike use the #/components/… form.

Where it appears

Further Reading