Direction

The text direction of a value, one of ltr, rtl, or auto. Use it for a field that sets which way content flows, mapping directly to the HTML dir attribute.

Component

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

Copy

At runtime it's one of a fixed set of string values:

Copy

Usage

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

Manifest

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

Copy

Declaration

Declare a direction field in one of these ways, depending on where the value comes from:

Last updated: 2 November 2026

Did this help?