Skip to content

Composition Examples

A run with spec.splitConcerns writes examples.yaml as its own file, and only when the composition has any named slot fills bundled alongside its primary content. CompositionExamplesDocument is that file’s type: it requires only metadata — slotContent is optional, since not every composition has one.

A composition has no instanceExamples and no images registry of its own — those are api/examples-concern fields on ComponentExamplesDocument that a composition has nothing to hold.

Properties

PropertyTypeRequiredDescription
metadataMetadataYesMust set metadata.concern to examples
slotContentRecord<string, SlotContent>NoNamed slot fills bundled alongside this composition’s primary content

See Also