Skip to content

"Fields" not found#21

Description

@dmt0

Thanks for bringing react-color back to live!

As I'm migrating, I'm missing an import Fields. This is the code I had before:

import {CustomPicker as customPicker} from 'react-color';
import Fields from 'react-color/lib/components/sketch/SketchFields';
import {Hue, Saturation} from 'react-color/lib/components/common';

const Custom = (props) => (
  <div className="colorpicker__outer">
    <div className="colorpicker__controls +flex">
      <div className="colorpicker__sliders">
        <div className="colorpicker__slider">
          <Hue {...props} />
        </div>
      </div>
    </div>
    <div className="colorpicker__saturation">
      <Saturation {...props} />
    </div>
    <div className="colorpicker__custom-input">
      <Fields {...props} onChange={props.onChangeComplete} />
    </div>
    <div className="colorpicker__swatches">
      <CompactPicker
        {...props}
      />
    </div>
  </div>
);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions