import React from "react";
import PropTypes from "prop-types";
import { IRangeProps } from "./form.d";
import Form from "./form-tags";
const Range = (props: IRangeProps) => {
const {
className,
error,
help,
label,
labelClassName,
name,
onChange,
value,
max,
min,
showNumber,
step,
numberClassName,
showDiapason,
escapeHelpContent
} = props;
const testId = props["data-testid"] || "honeyui-input";
return (
{label}
{help}
{error}
);
};
Range.displayName = "Range";
Range.propTypes = {
className: PropTypes.string,
error: PropTypes.string,
help: PropTypes.string,
label: PropTypes.string,
labelClassName: PropTypes.string,
onChange: PropTypes.func,
value: PropTypes.string.isRequired,
name: PropTypes.string.isRequired,
numberClassName: PropTypes.string,
max: PropTypes.string,
min: PropTypes.string,
step: PropTypes.string,
showNumber: PropTypes.string,
showDiapason: PropTypes.bool,
escapeHelpContent: PropTypes.bool
};
export default Range;