Types of Color Picker
Color Picker is delivered in 4 different ways: default colors, custom colors, native and small.
- Default colors: a predefined list of colors to the dropdown that is not allowed to change or manipulate.
- Custom colors: using the
colorsAPI in conjunction with
onColorsChangeenables the user to modify colors and add new ones.
- Native: use the
useNativeAPI when the color picker is being used in a native environment, it changes to the browser default color picker.
- Small: use the
smallAPI to size the color picker input to match other small inputs.
Code Sample (expand to see it)
We recommend that you review the use cases in the Storybook.