Optional List Property
Optionaldescription?: stringAn optional description that will be displayed below the property in the editor to help users understand the purpose of this property.
The prop definition of the items in this list. Declare it using the same
props.* helpers as in a schema, with any type except props.Children.
Item definitions must use optional: false so that newly added items
always carry an editable value.
The item's label is used to identify items in the editor (e.g. as
"Point #1") when the item value cannot represent itself.
Human-readable label for this property. Will be used to represent this property in the UI.
OptionaldefaultValue?: Item["type"][]The default value for this property. When omitted, the property defaults
to undefined and the list is disabled in the editor until it is
enabled explicitly.
Mark this as an optional value that can also take the value undefined.
Non-Optional List Property
Optionaldescription?: stringAn optional description that will be displayed below the property in the editor to help users understand the purpose of this property.
The prop definition of the items in this list. Declare it using the same
props.* helpers as in a schema, with any type except props.Children.
Item definitions must use optional: false so that newly added items
always carry an editable value.
The item's label is used to identify items in the editor (e.g. as
"Point #1") when the item value cannot represent itself.
Human-readable label for this property. Will be used to represent this property in the UI.
OptionaldefaultValue?: Item["type"][]The default value for this property. When omitted, the list defaults to an empty array.
Mark this as an optional value that can also take the value undefined.
Declares a prop that holds an ordered list of values of a single item type.
Items can be declared with any
props.*helper exceptprops.Children, includingprops.Objectfor lists of structured values. In the IDE the list is rendered as its own top-level group where items can be added, removed and reordered; an optional list also gets a checkbox to enable or disable it.New items are initialized with the
defaultValueof the item definition.Example
Declaring a list property