replace-react-color API - v4.1.2
    Preparing search index...

    Interface SketchProps

    Props for the SketchColor picker component.

    interface SketchProps {
        className?: string;
        disableAlpha?: boolean;
        hex: string;
        hsl: HSL;
        hsv: HSV;
        onChange?: (color: any, e: any) => void;
        onSwatchHover?: (color: any, e: MouseEvent) => void;
        presetColors?: (string | { color: string; title?: string })[];
        renderers?: any;
        rgb: RGB;
        style?: CSSProperties;
        styles?: any;
        width?: string | number;
    }
    Index

    Properties

    className?: string

    Optional classname applied to the root element

    disableAlpha?: boolean

    If true, the alpha channel slider is hidden

    hex: string

    The currently selected color represented as a Hex string

    hsl: HSL

    The currently selected color represented as HSL

    hsv: HSV

    The currently selected color represented as HSV

    onChange?: (color: any, e: any) => void

    Callback fired when the color changes

    onSwatchHover?: (color: any, e: MouseEvent) => void

    Callback fired when a preset swatch is hovered

    presetColors?: (string | { color: string; title?: string })[]

    A list of hex string preset colors to display at the bottom

    renderers?: any

    Custom renderers for internal sub-components

    rgb: RGB

    The currently selected color represented as RGB

    style?: CSSProperties

    Optional style applied to the root element

    styles?: any

    Custom styles to override the default aesthetic

    width?: string | number

    The width of the picker component