Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Fields" not found #21

Open
dmt0 opened this issue Mar 1, 2023 · 0 comments
Open

"Fields" not found #21

dmt0 opened this issue Mar 1, 2023 · 0 comments

Comments

@dmt0
Copy link

dmt0 commented Mar 1, 2023

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>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant