@wocart/theme / index / ComponentInstance
Interface: ComponentInstance
One occurrence of a component on one page (JSON only).
Properties
children?
optionalchildren?:ComponentInstance[]
fixed?
optionalfixed?:Record<string,ComponentInstance>
The values of the component's fixed blocks, by the name its definition gives each. Absent entries render with their defaults.
hidden?
optionalhidden?:boolean
true: kept in the document but not rendered — the merchant switched the
section off. Its children are not rendered either. Ignored on a fixed
block and on a required block a slot would otherwise lack.
id
id:
string
props?
optionalprops?:JsonObject
slots?
optionalslots?:Record<string,ComponentInstance[]>
type
type:
string