ColorInput = ({ value, onChange }) =>
  value ? (
    <input
      type="color"
      value={value}
      className="form-control"
      onChange={(e) => e.target && onChange(e.target.value)}
    />
  ) : (
    <button
      className="btn btn-sm btn-outline-secondary"
      onClick={() => onChange("#000000")}
    >
      <small>Set color</small>
    </button>
  )
@param {object} props
@param {string} props.value
@param {function} props.onChange
@category saltcorn-builder
@subcategory components / elements / utils
@namespace
@returns {input|button}