About Data

Alpha: Editor React Components are currently in alpha. This feature is subject to change and may have bugs, issues, and limitations. We're actively improving it based on your feedback.

The data property of your manifest controls how Wix users configure component properties and what data your component receives at runtime. When building custom components, you often want Wix users to configure specific properties like text, images, links, colors, or dates. Based on your data type definitions, the editor automatically generates the appropriate UI controls in panels in the editor. For example, if you define a date picker type, a date picker control appears when Wix users open the settings panel.

The displayName you provide becomes the label Wix users see in the editor panel.

Where to define

You can define data in:

The data property is optional.

Data item fields

Each property in your data object is a data item. A data item is an object with core fields that every data type shares, plus type-specific fields for additional configuration.

Core fields

dataTypeDataTypeRequired

The type of data this item stores. Determines validation, UI controls, and runtime format.


displayNamestring

Label shown in the editor. If omitted, the property key is used.


defaultValueValue

Initial value when the component is first added. This is what initially appears in the settings panel for this item. Format must match the runtime prop format.

Type-specific fields

Some data types require or allow additional configuration beyond the core fields. When a type supports extra configuration, those options go in a field named after the type itself.

For example, a text data type can have a text field with validation options:

Copy

For details on each type and its configuration options, see the type reference pages in Available data types.

Available data types

When you define data items in your manifest, you choose from a set of predefined data types. Each type comes with built-in validation, UI controls in the editor, and a corresponding runtime format. TypeScript types for all props are available from the @wix/editor-react-types package.

Available data types organized by category:

CategoryData TypeType-Specific FieldsDescription
Primitive Typestext✓A simple text value.
number✓Numeric values with optional validation constraints.
booleanValue✗true or false.
guid✗Globally unique identifier.
Text VariationstextEnum✓A list of predefined textual values to choose from.
richText✓HTML text with inline CSS styling.
regex✗Valid regex pattern.
direction✗Text direction.
Date and TimelocalDate✗Local date in ISO-8601 format YYYY-MM-DD.
localTime✗Local time in ISO-8601 format hh:mm[:ss][.sss].
localDateTime✗Local date-time in ISO-8601 format YYYY-MM-DDThh:mm[:ss][.sss].
Contact Informationemail✗Standard email address RFC 5321.
phone✗Phone number with common formatting characters.
webUrl✗URL with http or https scheme.
hostname✗IANA hostname.
Mediaimage✓Wix Image object.
video✓Wix Video object.
vectorArt✓Wix Sanitized Vector Art (SVG).
audio✗Wix Audio object.
Linklink✓Wix Link object.
Containercontainer✓Container for child components.
Complex Typesdata✓Complex nested data structure.
arrayItems✓Array of data items.
menuItems✗Site navigation menu items.
Accessibilitya11y✓Accessibility fields.
Event HandlersonClick✗Click event handler.
onChange✗Input change event handler.
onKeyPress✗Key press event handler.
onKeyUp✗Key up event handler.
onKeyDown✗Key down event handler.
onFocus✗Focus event handler.
onSubmit✗Form submit event handler.
function✗Custom function handler.

Last updated: 7 June 2026

Did this help?