Skip to content

Component Examples

A run with spec.splitConcerns writes examples.yaml as its own file. ComponentExamplesDocument is that file’s type: it requires only metadata — everything else in this file is optional, ready-made content rather than the structural contract api.yaml and variants.yaml carry.

Properties

PropertyTypeRequiredDescription
metadataMetadataYesMust set metadata.concern to examples
slotContentExamplesRecord<string, SlotContent>NoPro. Named slot-content fills, referenced by SlotContentRef
instanceExamplesInstanceExamplesNoPro. Documented whole-component usage examples
imagesRecord<string, ImageData>NoRegistry of image data referenced by backgroundImage and image props
subcomponentsComponentExamplesSubcomponent mapNoEmbedded child component definitions, sliced to this concern — see Component

See Also