ColorPicker
Basic 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
string
Default''A default hex code to preset the picker to display.
- setColor
func
RequiredPassing setState function allows parent to alter the color.
- className
string
A class name to append to the base element.
- size
enum
'sm' | 'md'Default'md'Size of the color picker