Skip to content

Component API

A run with spec.splitConcerns writes api.yaml as its own file rather than folding it into a single component document. ComponentApiDocument is that file’s type: it requires what the api concern carries and permits nothing else — no default block, no layout, no styles.

Properties

PropertyTypeRequiredDescription
metadataMetadataYesMust set metadata.concern to api
titlestringYesComponent name
anatomyAnatomyYesMap of named elements that make up the component
propsPropsYesConfigurable input properties
invalidPropCombinationsPropConfigurations[]NoProp combinations that are not valid together
subcomponentsComponentApiSubcomponent mapNoEmbedded child component definitions, sliced to this concern — see Component

See Also