Component
The Component type is the root object of every spec. It contains the component’s structure, properties, default appearance, and variant overrides.
Properties
| Property | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Component name |
anatomy | Anatomy | Yes | Map of named elements that make up the component |
props | Props | No | Configurable input properties |
default | Variant | Yes | Default variant — the baseline appearance |
variants | Variant[] | No | Layered variant overrides |
invalidVariantCombinations | PropConfigurations[] | No | Prop combinations that are not valid together |
subcomponents | Subcomponents | No | Embedded child component definitions |
metadata | Metadata | No | Generation metadata (author, schema version, config) |