@wocart/theme / index / ComponentPreset
Interface: ComponentPreset
A ready-made configuration of a component that an editor offers when inserting it ("Hero — with image", a two-column section with its columns): props over the field defaults, and child components for its slots.
Properties
children?
optionalchildren?: readonlyPresetInstance[]
description?
optionaldescription?:LocalizedText
key
key:
string
Lowercase kebab-case, unique among the component's presets.
label
label:
LocalizedText
props?
optionalprops?:JsonObject
slots?
optionalslots?:Readonly<Record<string, readonlyPresetInstance[]>>