How to use the react-color/lib/components/common.Saturation function in react-color

To help you get started, we’ve selected a few react-color examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github plotly / react-chart-editor / lib / components / widgets / TieredColorPicker.js View on Github external
return _react2.default.createElement(
    "div",
    null,
    _react2.default.createElement(
      "div",
      null,
      _react2.default.createElement(
        "p",
        { className: "color-picker-title" },
        (0, _common2._)("Custom colors")
      ),
      _react2.default.createElement(
        "div",
        { className: "color-picker-saturation" },
        _react2.default.createElement(_common.Saturation, props)
      ),
      _react2.default.createElement(
        "div",
        { className: "color-picker-controls +flex" },
        _react2.default.createElement(
          "div",
          { className: "color-picker-sliders" },
          _react2.default.createElement(
            "div",
            { className: "color-picker-slider" },
            _react2.default.createElement(_common.Hue, props)
          ),
          _react2.default.createElement(
            "div",
            { className: "color-picker-slider" },
            _react2.default.createElement(_common.Alpha, props)