LinearGradient
Create smooth linear color gradients
Props
Prop
Details
colorAstringDefault:
#1aff00The starting color of the gradient
colorAstringDefault: #1aff00The starting color of the gradient
colorBstringDefault:
#0000ffThe ending color of the gradient
colorBstringDefault: #0000ffThe ending color of the gradient
start{x: number, y: number}Default:
{"x":0,"y":0.5}The starting point of the gradient
start{x: number, y: number}Default: {"x":0,"y":0.5}The starting point of the gradient
end{x: number, y: number}Default:
{"x":1,"y":0.5}The ending point of the gradient
end{x: number, y: number}Default: {"x":1,"y":0.5}The ending point of the gradient
anglenumberDefault:
0Additional rotation angle of the gradient (in degrees)
anglenumberDefault: 0Additional rotation angle of the gradient (in degrees)
edges"stretch" | "transparent" | "mirror" | "wrap"Default:
stretchHow to handle areas beyond the gradient endpoints
edges"stretch" | "transparent" | "mirror" | "wrap"Default: stretchHow to handle areas beyond the gradient endpoints
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default:
linearColor space for color interpolation
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default: linearColor space for color interpolation