@wocart/theme / index / ComponentDefinition
Interface: ComponentDefinition
Code-owned description of one reusable component. component is the real
component reference — opaque here so the core stays framework-neutral; the
./astro renderer narrows it.
Properties
capabilities?
optionalcapabilities?:ComponentCapabilities
component
component:
unknown
fields?
optionalfields?: readonlyFieldDefinition[]
fixed?
optionalfixed?: readonlyFixedBlockDefinition[]
group?
optionalgroup?:LocalizedText
The editor palette heading this component is listed under.
label
label:
LocalizedText
load?
optionalload?:LoadFn
placement?
optionalplacement?:ComponentPlacement
presets?
optionalpresets?: readonlyComponentPreset[]
role?
optionalrole?:"order-form"
slots?
optionalslots?: readonlySlotDefinition[]
type
type:
string
Stable type identity: lowercase kebab-case, unique in the catalog.