@wocart/theme / index / MenuFieldDefinition
Interface: MenuFieldDefinition
menu: which of the store's menus to show here — Shopify's link_list.
The value is a menu handle (main-menu); the theme reads the menu with
the storefront client's menus.get(handle). A theme never assumes a menu
exists: an unknown handle reads as no menu.
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:
"menu"
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