@wocart/theme / index / CategoryFieldDefinition
Interface: CategoryFieldDefinition
category: which of the store's categories to show here. The value is a
category slug (the /category/<slug> segment); the theme finds it in the
storefront client's categories.list(). An unknown slug reads as no category.
Extends
FieldDefinitionBase
Properties
default?
optionaldefault?:string
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:
"category"
label
label:
LocalizedText
Editor-facing name, the same in every language or translated.
Inherited from
FieldDefinitionBase.label
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