[**@wocart/theme v4.1.0**](../../README)

***

[@wocart/theme](../../README) / [index](../README) / 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`](PresetInstance)[]

***

### description?

> `optional` **description?**: [`LocalizedText`](../type-aliases/LocalizedText)

***

### key

> **key**: `string`

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

***

### label

> **label**: [`LocalizedText`](../type-aliases/LocalizedText)

***

### props?

> `optional` **props?**: [`JsonObject`](../type-aliases/JsonObject)

***

### slots?

> `optional` **slots?**: `Readonly`\<`Record`\<`string`, readonly [`PresetInstance`](PresetInstance)[]\>\>
