You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Name | Type | Default Value | Required? | Description
51
51
|-|-|-|-|-
52
52
| `palette` | `PaletteColor[]` | `undefined` | Yes | The gradient pickers color palette, Each palette color struct is described below
53
-
| `onPaletteChange` | `Function` | `undefined` | Yes | The function to trigger upon palette change (Can be neither from stop drag or color select).
53
+
| `onPaletteChange` | `Function` | `undefined` | Yes | The function to trigger upon palette change (Can be either from stop drag or color select).
54
54
| `paletteHeight` | `Number` | `32` | No | The stops palette display area height
55
55
| `width` | `Number` | `400` | No | Determines the width of the gradient picker
56
56
| `stopRemovalDrop` | `Number` | `50` | No | Sets the Y stop drop removal offset, If the user will drag the color stop further than specified, Color will be removed
57
57
| `maxStops` | `Number` | `5` | No | The max gradient picker palette length can have
58
58
| `minStops` | `Number` | `2` | No | The min gradient picker palette length can have
59
59
60
-
PaletteColor = shape({
61
-
color: string.isRequired,
62
-
offset: string.isRequired,
63
-
opacity: number,
64
-
});
60
+
|> Palette Color
61
+
| Name | Type | Default Value | Required? | Description
62
+
|-|-|-|-|-
63
+
| `color` | `String` | `` | Yes | The stop color, can be either hex of rgb format.
64
+
| `offset`| `Number` | `` | `Yes` | The stop color offset in percent.
65
+
| `opacity`| `Number` | `1` | `No` | The stop color opacity.
0 commit comments