<GradientMask>
Gradient text example
</GradientMask>
Props
GradientMask
Prop | Type | Default | Description |
---|---|---|---|
colors | array | ['#8D34FF', '#3600CC'] | array of at least two color values that represent gradient colors |
locations | array | – | optional array of numbers defining the location of each gradient color stop, mapping to the color with the same index in colors prop |
start | shape | { x: 0, y: 0 } | optional object declares the position that the gradient starts at |
end | shape | { x: 0, y: 1 } | optional object declares the position that the gradient ends at |
children | node | – | children of the component |