Theme

Imagery & Iconography
npm_versionnpm Paragon package page

Basic Usage

Any Paragon component or export may be added to the code example.

With good and malformatted default color passed

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

    A default hex code to preset the picker to display.

    Default''
  • setColor func Required

    Passing setState function allows parent to alter the color.

  • className string

    A class name to append to the base element.

  • size enum'sm' | 'md'

    Size of the color picker

    Default'md'