ColorPicker
Leave feedbackBasic Usage
Show editable code example
Any Paragon component or export may be added to the code example.
With good and malformatted default color passed
Show editable code example
Any Paragon component or export may be added to the code example.
Theme Variables (SCSS)#
$picker-size-sm: 2rem !default;$picker-size-md: calc(1.3333em + 1.125rem + 2px) !default;
Props API#
ColorPicker Props API
- color
stringDefault''A default hex code to preset the picker to display.
- setColor
funcRequiredPassing setState function allows parent to alter the color.
- className
stringA class name to append to the base element.
- size
enum'sm' | 'md'Default'md'Size of the color picker