Skip to content

Component

The Component type is the root object of every spec. It contains the component’s structure, properties, default appearance, and variant overrides.

Properties

PropertyTypeRequiredDescription
titlestringYesComponent name
anatomyAnatomyYesMap of named elements that make up the component
propsPropsNoConfigurable input properties
defaultVariantYesDefault variant — the baseline appearance
variantsVariant[]NoLayered variant overrides
invalidVariantCombinationsPropConfigurations[]NoProp combinations that are not valid together
subcomponentsSubcomponentsNoEmbedded child component definitions
metadataMetadataNoGeneration metadata (author, schema version, config)