✅ You are viewing documentation for the latest version of Compose SDK.
Version:
# Interface LinearGradientDirection
Linear gradient direction configuration.
# Example
const direction: LinearGradientDirection = {
x1: 0, y1: 0, // Start point (top-left)
x2: 0, y2: 1 // End point (bottom-left)
};
# Properties
# x1
x1:
number
X coordinate of the start point (0-1)
# x2
x2:
number
X coordinate of the end point (0-1)
# y1
y1:
number
Y coordinate of the start point (0-1)
# y2
y2:
number
Y coordinate of the end point (0-1)