Wocart

@wocart/theme v4.1.0


@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?

optional children?: readonly PresetInstance[]


description?

optional description?: LocalizedText


key

key: string

Lowercase kebab-case, unique among the component's presets.


label

label: LocalizedText


props?

optional props?: JsonObject


slots?

optional slots?: Readonly<Record<string, readonly PresetInstance[]>>