@wocart/theme / index / StyleFieldDefinition
Interface: StyleFieldDefinition
style: how a section or block sits on the page — spacing, layout, size —
as steps and choices, never CSS. styleClasses(value) turns a value into
the classes of the stylesheet the SDK makes from the theme's scales.
Extends
FieldDefinitionBase
Properties
default?
optionaldefault?:StyleValue
description?
optionaldescription?:LocalizedText
Editor-facing help text.
Inherited from
FieldDefinitionBase.description
key
key:
string
The exact prop name the component expects.
Inherited from
FieldDefinitionBase.key
kind
kind:
"style"
label
label:
LocalizedText
Editor-facing name, the same in every language or translated.
Inherited from
FieldDefinitionBase.label
panels
panels: readonly
StylePanel[]
required?
optionalrequired?:boolean
Inherited from
FieldDefinitionBase.required
visibleIf?
optionalvisibleIf?:FieldCondition
When an editor shows the field; absent: always. The renderer ignores it.
Inherited from
FieldDefinitionBase.visibleIf