TextEnum

A value the Wix user picks from a fixed set of options you define. Use it for a field with a small, known list of choices, such as a sort order or a status.

Component

In your component code, import the TextEnum type from @wix/editor-react-types:

Copy

At runtime it's a plain string holding the chosen option value, so your code compares or applies it directly:

Copy

Usage

Your code either consumes a value of type TextEnum or produces one:

Manifest

In your manifest, declare the field with the textEnum dataType:

Copy

Declaration

Declare a textEnum field in one of these ways, depending on where the value comes from. A textEnum requires a textEnum options object in every role.

Last updated: 2 November 2026

Did this help?