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
Copy file name to clipboardExpand all lines: README.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,15 +48,17 @@ const App = () => {
48
48
49
49
### Accepted props
50
50
51
-
| Name | Type | Default Value | Required? | Description
52
-
|-|-|-|-|-
53
-
| `palette` | `PaletteColor[]` | `undefined` | Yes | The gradient pickers color palette, Each palette color struct is described below
54
-
| `onPaletteChange` | `Function` | `undefined` | Yes | The function to trigger upon palette change (Can be either from stop drag or color select).
55
-
| `paletteHeight` | `Number` | `32` | No | The stops palette display area height
56
-
| `width` | `Number` | `400` | No | Determines the width of the gradient picker
57
-
| `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
58
-
| `maxStops` | `Number` | `5` | No | The max gradient picker palette length can have
59
-
| `minStops` | `Number` | `2` | No | The min gradient picker palette length can have
51
+
| Name | Type | Default Value | Required? | Description
| `palette` | `PaletteColor[]` | `undefined` | Yes | The gradient pickers color palette, Each palette color struct is described below
54
+
| `onPaletteChange` | `Function` | `undefined` | Yes | The function to trigger upon palette change (Can be either from stop drag or color select).
55
+
| `paletteHeight` | `Number` | `32` | No | The stops palette display area height
56
+
| `width` | `Number` | `400` | No | Determines the width of the gradient picker
57
+
| `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
58
+
| `maxStops` | `Number` | `5` | No | The max gradient picker palette length can have
59
+
| `minStops` | `Number` | `2` | No | The min gradient picker palette length can have
60
+
| `colorPickerMode` | `String` | `static`\|`popover` | No | Determines the mode of the color picker picker component, by default `static` will always present otherwise will act as popover which will appear upon interaction.
61
+
| `direction` | `horizontal`\|`vertical` | `horizontal` | No | Determines the direction of the gradient picker.
60
62
61
63
|> Palette Color
62
64
| Name | Type | Default Value | Required? | Description
0 commit comments