Data Reference

The data section of a context provider manifest declares configuration inputs. In Studio Two, a Wix user sets these inputs when configuring a Data Source, and the values arrive on the provider component as React props.

Example

The following data section defines 2 inputs for a team context:

Copy

Data item fields

A data item supports the following fields:

FieldRequiredDescription
dataTypeYesType of value the input accepts.
displayNameNoInput name shown in the editor.
defaultValueNoInitial editor value. It must match the runtime prop shape.
disableDeletionNoWhether a Wix user can clear the input in the editor.
arrayItemsWhen dataType is arrayItemsDefinition for each element in an array.
dataWhen dataType is dataFields in a nested object.
textEnumWhen dataType is textEnumAllowed string options.

Empty data

If the provider doesn't need configuration, set data to an empty object. The provider component still runs, and the editor doesn't show configuration fields.

Copy

Arrays

For an array, set dataType to arrayItems and define each element under arrayItems.dataItem:

Copy

Warning: Arrays in data use arrayItems.dataItem. Arrays in context use arrayItems.item.

Nested objects

For a nested object, set dataType to data and define its fields under data.items:

Copy

Text enums

For a fixed set of strings, set dataType to textEnum and list the choices under textEnum.options:

Copy

See also

Last updated: 2 November 2026

Did this help?