Skip to content

Composition API

A run with spec.splitConcerns writes api.yaml as its own file. CompositionApiDocument is that file’s type: it requires what the api concern carries and permits nothing else — no elements, no layout, no slotContent.

A composition has no props, so this document carries no invalidPropCombinations and no subcomponents either — both are api-concern fields on ComponentApiDocument that a composition has nothing to hold.

Properties

PropertyTypeRequiredDescription
metadataMetadataYesMust set metadata.concern to api
titlestringNoHuman-readable label for the composition
descriptionstringNoPurpose and usage notes for documentation tooling
anatomyAnatomyYesMap of named elements that make up the composition

See Also